How to get my bot to read the amount of members in a server

I’m trying to get my bot to have a command that basically responds with “this server has x amount of members!”, does anyone know what I could do? I’m still somewhat new to bot development, so it would be nice to have some advice <3

try this and let me know how it turns out. sadly i cannot access discord to test this.

https://www.codegrepper.com/code-examples/typescript/discord.js+get+a+more+accurate+member+count

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.