constDEL=require('@zerotwobot/del.js')// importing delconstdel=newDEL("auth token","client id")// initializing it
Arguments
Parameter
Type
Optional
Description
key
String
false
The API Token found on your bot's page.
id
Snowflake
false
Your bot's client ID.
example
constDiscord=require("discord.js")constclient=newDiscord.Client()constprefix="del.";constDEL=require("@zerotwobot/del.js")constdel=newDEL("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("token")
About
The official JS library for the Discord Extreme List API.