It always says undefined, can you help me?

No description
7 Replies
d.js toolkit
d.js toolkitā€¢13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
JoĆ£ozinho
JoĆ£ozinhoā€¢13mo ago
the membercount
duck
duckā€¢13mo ago
sounds each guildObject is an OAuth2Guild rather than a Guild object since you have the Guilds intent, your bot's guilds will be cached on ready, so there's no need to fetch guilds you'd just need to do this on ready rather than immediately after calling <Client>.login() without waiting for it to resolve
JoĆ£ozinho
JoĆ£ozinhoā€¢13mo ago
How can I pull how many people are on that server?
JoĆ£ozinho
JoĆ£ozinhoā€¢13mo ago
No description
JoĆ£ozinho
JoĆ£ozinhoā€¢13mo ago
@duck
duck
duckā€¢13mo ago
by doing this on ready, then just getting the guilds from the cache rather than fetching then you can access <Guild>.memberCount
Want results from more Discord servers?
Add your server