- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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
#Cannot send messages to this user
15 messages · Page 1 of 1 (latest)
You cant send messages to a user thats not in the guild
Since you just banned them, they arent in the guild
Send the message before banning
I tried this way but same error
https://sourceb.in/iOpMwV3fZz
thats still in the guildBanAdd event
no
You already banned the person
Unbanning them wont magically make them rejoin
If your bot bans them, you have to send a message then. If you manually ban them, you cant
Ah, so I have to have a command to be able to ban and send the message in dm this way?
Yes