#Which Intents choose ?

5 messages · Page 1 of 1 (latest)

strong bluff
#

Hello, people!
I think I have some issues with the choose of Intents.
Indeed, I'm trying to do work both guildmemberAdd and guildMemberRemove events.

Following DiscordJS Guide, I noticed guildMemberAdd works when GateawayIntentBits.GuildMembers is enabled but no guildMemberRemove

Adding GatewayIntentBits.Guilds, both of them works BUT guildMemberAdd happen twice guildMemberRemove is working once for one member.

Removing GatewayIntentsBits.GuildMembers, both of them don't work.

Currently, I'm really confused, if some of you may have an idea to suggest...
Thank you in advance !

weak nebula
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

quiet gate
#

you need the Guilds and GuildMembers intent for those events

#

additionally might need to enable partials for the remove event