You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2019. It is now read-only.
First, start by firing off the getBotStats event and supplying an ID.
letbotStats=awaitdbw.getBotStats(BotID)
The function must be awaited or you can use a promise
dbw.getBotStats(BotID).then(botStats=>{})
This will return likes, guilds, and shards. To get the information, just grab it from the function like so:
botStats.likes;// Returns the likes of the specified bot.botStats.guilds;// Returns the guilds of the specified bot.botStats.shards;// Returns the shards of the specified bot.
Lets say the bot doesn't have any server info posted to DBW, botStats.guilds would instead simply return a null.