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
- 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 OPI think you need to check audit logs
Either that or check the ban list when the guildMemberRemove event is fired.
ok thanks