Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add discord server member count to website #2

Open
good3n opened this issue Jul 19, 2019 · 2 comments
Open

add discord server member count to website #2

good3n opened this issue Jul 19, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@good3n
Copy link
Owner

good3n commented Jul 19, 2019

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

@good3n good3n added the enhancement New feature or request label Jul 19, 2019
@good3n good3n self-assigned this Jul 19, 2019
@ghost
Copy link

ghost commented Jul 24, 2019

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
Copy link

drdrjojo commented Oct 5, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants