#can bot read message content in dms

4 messages · Page 1 of 1 (latest)

vivid lily
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

static oxideBOT
#

Tag suggestion for @forest edge:
DiscordAPIError: Cannot send messages to this user
Your bot is trying to send a DM to a user, but failed to do so:
• The user has DMs disabled or the bot blocked
• The user no longer shares a guild with the bot (make sure to send informational DMs before banning/kicking)
• The bot is trying to DM itself or another bot
Note: You cannot check if you can send a DM beforehand but have to handle the rejection case

sick knot
#

Whoops wrong one

static oxideBOT
#

Tag suggestion for @forest edge:
To receive direct message events on "messageCreate" with your bot, you will need:
• The DirectMessages gateway intent
• The Channel partial setting