Enum GatewayIntents
Intents are used to configure which events are passed to the bot via the gateway connection. Intents marked as privileged must be enabled in the application developer portal before being passed here, otherwise the connection will terminate with close code 4014.
[Flags]
public enum GatewayIntents : uint
Fields
All = GuildUsers | GuildPresences | MessageContent | AllNonPrivileged
Implies all available intents, including privileged intents.
AllNonPrivileged = Guilds | GuildModeration | GuildEmojisAndStickers | GuildIntegrations | GuildWebhooks | GuildInvites | GuildVoiceStates | GuildMessages | GuildMessageReactions | GuildMessageTyping | DirectMessages | DirectMessageReactions | DirectMessageTyping | GuildScheduledEvents | AutoModerationConfiguration | AutoModerationExecution | GuildMessagePolls | DirectMessagePolls
Implies all available intents, excluding privileged intents.
AutoModerationConfiguration = 1048576
Associated with the following events:
AutoModerationRuleCreate, AutoModerationRuleUpdate, AutoModerationRuleDeleteAutoModerationExecution = 2097152
Associated with the following events:
AutoModerationActionExecutionDirectMessagePolls = 33554432
DirectMessageReactions = 8192
Associated with the following events:
MessageReactionAdd, MessageReactionRemove, MessageReactionRemoveAll, MessageReactionRemoveEmojiDirectMessageTyping = 16384
Associated with the following events:
TypingStartDirectMessages = 4096
Associated with the following events:
MessageCreate, MessageUpdate, MessageDelete, ChannelPinsUpdateGuildEmojisAndStickers = 8
Associated with the following events:
GuildEmojisUpdate, GuildStickersUpdateGuildIntegrations = 16
Associated with the following events:
GuildIntegrationsUpdate, GuildIntegrationCreate, GuildIntegrationUpdate, GuildIntegrationDeleteGuildInvites = 64
Associated with the following events:
InviteCreate, InviteDeleteGuildMessagePolls = 16777216
GuildMessageReactions = 1024
Associated with the following events:
MessageReactionAdd, MessageReactionRemove, MessageReactionRemoveAll, MessageReactionRemoveEmojiGuildMessageTyping = 2048
Associated with the following events:
TypingStartGuildMessages = 512
Associated with the following events:
MessageCreate, MessageUpdate, MessageDelete, MessageDeleteBulkGuildModeration = 4
Associated with the following events:
GuildAuditLogEntryCreate, GuildBanAdd, GuildBanRemoveGuildPresences = 256
Privileged, associated with the following events:
PresenceUpdateGuildScheduledEvents = 65536
Associated with the following events:
GuildScheduledEventCreate, GuildScheduledEventUpdate, GuildScheduledEventDelete, GuildScheduledEventUserAdd, GuildScheduledEventUserRemoveGuildUsers = 2
Privileged, associated with the following events:
GuildUserAdd, GuildUserUpdate, GuildUserRemove, GuildThreadUsersUpdateGuildVoiceStates = 128
Associated with the following events:
VoiceChannelEffectSend VoiceStateUpdateGuildWebhooks = 32
Associated with the following events:
WebhooksUpdateGuilds = 1
Associated with the following events:
-
Guild Events: GuildCreate, GuildUpdate, GuildDelete
-
Role Events: RoleCreate, RoleUpdate, RoleDelete
-
Channel Events: GuildChannelCreate, GuildChannelUpdate, GuildChannelDelete, ChannelPinsUpdate
-
Thread Events: GuildThreadCreate, GuildThreadUpdate, GuildThreadDelete, GuildThreadListSync
-
Thread User Events: GuildThreadUserUpdate, GuildThreadUsersUpdate
- Stage Events: StageInstanceCreate, StageInstanceUpdate, StageInstanceDelete
-
Guild Events: GuildCreate, GuildUpdate, GuildDelete
MessageContent = 32768
Privileged, ssociated with the following events:
MessageCreate, MessageUpdate, MessageDelete, ChannelPinsUpdate