The Unofficial API Module For Discord Lists Development in JavaScript.
Using npm
npm i dldapi
Using yarn
yarn add dldapi
- .postStats()
- More coming soon
Methods usage:
constDLDAPI=require('dldapi');constdld=newDLDAPI('BOT_ID','API_KEY');- .postStats()
dld.postStats('SERVER_COUNT').then(console.log);constDLDAPI=require('dldapi');module.exports=(client)=>{constdld=newDLDAPI(client.user.id,"EXAMPLE");dld.postStats(client.guilds.cache.size).then((r)=>{console.log(r);}).catch((err)=>{console.log(err);});};OR
constDLDAPI=require('dldapi');module.exports=async(client)=>{constdld=newDLDAPI(client.user.id,"EXAMPLE");letres=awaitdld.postStats(client.guilds.cache.size);console.log(res);};