Table of Contents

Enum DiscordIntents

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

Represents gateway intents to be specified for connecting to Discord.

[Flags]
public enum DiscordIntents
Extension Methods

Fields

All = GuildMembers | GuildPresences | MessageContents | AllUnprivileged

Includes all intents.

The GuildMembers and GuildPresences intents are privileged, and must be enabled on the bot's developer page.

AllUnprivileged = Guilds | GuildModeration | GuildEmojisAndStickers | GuildIntegrations | GuildWebhooks | GuildInvites | GuildVoiceStates | GuildMessages | GuildMessageReactions | GuildMessageTyping | DirectMessages | DirectMessageReactions | DirectMessageTyping | ScheduledGuildEvents | AutoModerationEvents | AutoModerationExecution | GuildMessagePolls | DirectMessagePolls

Includes all unprivileged intents.

These are all intents excluding GuildMembers and GuildPresences.

AutoModerationEvents = 1048576

Whetever to include creation, modification or deletion of an auto-Moderation rule.

AutoModerationExecution = 2097152

Whetever to include when an auto-moderation rule was fired.

DirectMessagePolls = 33554432

Whetever to include add and remove of a poll votes events in direct messages.

This includes MessagePollVoted

DirectMessageReactions = 8192

Whether to include direct message reaction events. These include MessageReactionAdded, MessageReactionRemoved, MessageReactionsCleared, and MessageReactionRemovedEmoji. These events only fire for DM channels.

DirectMessageTyping = 16384

Whether to include direct message typing events.

This includes TypingStarted.

This event only fires for DM channels.

DirectMessages = 4096

Whether to include general direct message events. These include ChannelCreated, MessageCreated, MessageUpdated, MessageDeleted, ChannelPinsUpdated. These events only fire for DM channels.

GuildEmojisAndStickers = 8

Whether to include guild emoji events.

This includes GuildEmojisUpdated.

GuildIntegrations = 16

Whether to include guild integration events.

This includes GuildIntegrationsUpdated.

GuildInvites = 64

Whether to include guild invite events.

These include InviteCreated and InviteDeleted.

GuildMembers = 2

Whether to include guild member events. These include GuildMemberAdded, GuildMemberUpdated, and GuildMemberRemoved. This is a privileged intent, and must be enabled on the bot's developer page.

GuildMessagePolls = 16777216

Whetever to include add and remove of a poll votes events in guilds.

This includes MessagePollVoted

GuildMessageReactions = 1024

Whether to include guild reaction events. These include MessageReactionAdded, MessageReactionRemoved, MessageReactionsCleared, and MessageReactionRemovedEmoji.

GuildMessageTyping = 2048

Whether to include guild typing events.

These include TypingStarted.

GuildMessages = 512

Whether to include guild message events.

These include MessageCreated, MessageUpdated, and MessageDeleted.

GuildModeration = 4

Whether to include guild ban events.

These include GuildBanAdded, GuildBanRemoved and GuildAuditLogCreated.

GuildPresences = 256

Whether to include guild presence events.

This includes PresenceUpdated.

This is a privileged intent, and must be enabled on the bot's developer page.

GuildVoiceStates = 128

Whether to include guild voice state events.

This includes VoiceStateUpdated.

GuildWebhooks = 32

Whether to include guild webhook events.

This includes WebhooksUpdated.

Guilds = 1

Whether to include general guild events. These include GuildCreated, GuildDeleted, GuildAvailable, GuildDownloadCompleted, GuildRoleCreated, GuildRoleUpdated, GuildRoleDeleted, ChannelCreated, ChannelUpdated, ChannelDeleted, and ChannelPinsUpdated.

MessageContents = 32768

Whether to include message content. This is a privileged event.

Message content includes text, attachments, embeds, components, and reply content.

This intent is required for CommandsNext to function correctly.

None = 0

By default, no Discord Intents are requested from the Discord gateway.

ScheduledGuildEvents = 65536

Whether to include scheduled event messages.