#can bot read message content in dms
4 messages · Page 1 of 1 (latest)
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
Whoops wrong one
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