Problem with guildMemberRemove.js (duplicate leave message)
hi i have problem with my code, general when someone leave bot duplicate the message x2... but my guildMemberAdd looks VERY VERY same and send only 1 message ;/
18 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!Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I remember having issues with duplicate join "messages". It was/is a Discord issue. It may be also for leave "messages"
13
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ok i will come back after changing
ok...but here?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
same error
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ahh wait
lmao
ok i finally fixed that but i didnt understant next problem with "FLAGS"
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined
- All SCREAMING_SNAKE_CASE
enums have been changed to PascalCase
- Intents: Intents.FLAGS.GUILD_MESSAGES
-> GatewayIntentBits.GuildMessages
- Permissions: Permissions.FLAGS.SEND_MESSAGES
-> PermissionFlagsBits.SendMessages
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View