Problem with the guildBanAdd event

When I test the event by banning someone, it doesn’t work and I don’t know what to do. I already have version 14.15.3 of discord.js and all the other events I have work perfectly, but not this one, same as the guildBanRemove event.
11 Replies
d.js toolkit
d.js toolkit5mo 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! - Marked as resolved by OP
JuanQ
JuanQOP5mo ago
This is my discord.js version and nodejs
No description
JuanQ
JuanQOP5mo ago
treble/luna
treble/luna5mo ago
what intents do you have
JuanQ
JuanQOP5mo ago
this?
No description
treble/luna
treble/luna5mo ago
in your client constructor
JuanQ
JuanQOP5mo ago
No description
treble/luna
treble/luna5mo ago
p sure you need GuildModeration for that event
JuanQ
JuanQOP5mo ago
Add that one to the list?
treble/luna
treble/luna5mo ago
yes
JuanQ
JuanQOP5mo ago
Thanks, it already worked for me.
Want results from more Discord servers?
Add your server