good3n / codehelp

CodeHelp
https://codehelp.io
BSD Zero Clause License
5 stars 3 forks source link

add discord server member count to website #2

Open good3n opened 5 years ago

good3n commented 5 years ago

Maybe? https://github.com/discordjs/discord.js/

ghost commented 4 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.

drdrjojo commented 4 years ago

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!