7 Replies
- 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!the membercount
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 resolveHow can I pull how many people are on that server?
@duck
by doing this on ready, then just getting the guilds from the cache rather than fetching
then you can access
<Guild>.memberCount