DiscordAPIError[50007]: Cannot send messages to this user
So i made a bot that reads messages and deletes them when there is a specific word in them. and after that i want to send the author a message in their dms. but i keep getting DiscordAPIError[50007]: Cannot send messages to this user. and sometimes it works, and sometimes it dosnt. and when it dosnt work i still get a notification and the bot shows up in my dms, i just dont see any messages. this could be a discord bug but it also gave my bot an error so i tought id ask here
3 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 OPthat error means
* The user does not share a server with your bot
* The user has disabled dms
* The user has blocked your bot
ahh alr thx