1.0.9 • Published 4 years ago
discord_server_info v1.0.9
This is Discord Server Info NPM.
YOU NEED TO USE DISCORD.JS FOR THIS TO WORK
Example:
const Discord = require('discord.js')
const client = new Discord.Client()
const Info = require('discord_server_info')
client.on('ready', (message) => {
Info.BotInfo(client).then(r => console.log(`Guilds: ${r.guilds}\nUsers: ${r.users}`)).catch(console.log)
})
The BotInfo function returns an object, Inside the object there is both guilds and users.