Open good3n opened 5 years ago
That's pretty easy to do so. All you need to do is pass or export the client
to the server file and use client.guilds.size()
to display the number of servers, the bot is on. Check out ExpressApp#render
for more information.
There is an easier way to add this by enabling the widget on the discord server and replace the join image with this:
https://discordapp.com/api/guilds/552253941845458957/widget.png?style=shield
The long id should match with the server id!
Maybe? https://github.com/discordjs/discord.js/