How to fire guildBanAdd without guildMemberRemove

I have a message that is sent when a user leaves the server using the guildMemberRemove event. But I'd like to send a different message when the user got banned. I know there is a guildBanAdd event, but the guildMemberRemove still fires with bans.
4 Replies
d.js toolkit
d.js toolkit15mo 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
Булочка | pasha_boez
I think you need to check audit logs
lupus
lupus15mo ago
Either that or check the ban list when the guildMemberRemove event is fired.
Nico
NicoOP15mo ago
ok thanks
Want results from more Discord servers?
Add your server