del.js 2.0.0
Install from the command line:
Learn more about npm packages
$ npm install @discordextremelist/del.js@2.0.0
Install via package.json:
"@discordextremelist/del.js": "2.0.0"
About this version
This is a JavaScript API wrapper for Discord Extreme List's API.
const DEL = require("del.js"); // Importing DEL.js
const del = new DEL.Del("API auth token", "Discord client ID"); // Initialising it
Parameter | Type | Optional | Description |
---|---|---|---|
key | String | false | The API Token found on your bot's page. |
id | Snowflake | false | Your bot's client ID. |
const Discord = require("discord.js");
const client = new Discord.Client();
const DEL = require("del.js");
const del = new DEL.Del("API auth token", client.user.id);
client.on("ready", () => {
console.log(`Logged in as ${client.user.tag}.`);
setInterval(() => {
del.post(client.guilds.cache.size, 0) // You will probably need to change this.
}, 600000); // 10 minutes in milliseconds
});
client.login("bot token");
Details
- del.js
- discordextremelist
- about 2 years ago
- MIT
- 4 dependencies
Assets
- del.js-2.0.0.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0