#Read Ephemeral Messages
1 messages · Page 1 of 1 (latest)
Automated suggestion: You don't have the Message Content Intent enabled
As of September 1st 2022, Discord started requiring message content intent for bots that want to read message content. This is a privileged intent!
If your bot has under 100 guilds, all you have to do is flip the switch in the developer dashboard (over at https://discord.com/developers/applications, also see the image) and then specifying the intent in your DiscordConfiguration (see the code example)
If your bot has over 100 guilds, you'll need approval from Discord's end.
Even though you can just use this to get away with it, it is recommended by Discord to use Slash Commands whenever possible, so look into that if you can (Slash Commands Documentation)
Code Example:
DiscordConfiguration config = new() {
// ...
// If you do not set this, your bot will fail to start with the error code: "Disallowed intent(s)"
Intents = DiscordIntents.AllUnprivileged | DiscordIntents.MessageContents,
// ...
}
This action was performed automatically. Please use the buttons below to vote on your experience