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 | AllNonPrivilegedImplies all available intents, including privileged intents.
AllNonPrivileged = Guilds | GuildModeration | GuildEmojisAndStickers | GuildIntegrations | GuildWebhooks | GuildInvites | GuildVoiceStates | GuildMessages | GuildMessageReactions | GuildMessageTyping | DirectMessages | DirectMessageReactions | DirectMessageTyping | GuildScheduledEvents | AutoModerationConfiguration | AutoModerationExecution | GuildMessagePolls | DirectMessagePollsImplies all available intents, excluding privileged intents.
AutoModerationConfiguration = 1048576Associated with the following events:
AutoModerationRuleCreate, AutoModerationRuleUpdate, AutoModerationRuleDeleteAutoModerationExecution = 2097152Associated with the following events:
AutoModerationActionExecutionDirectMessagePolls = 33554432DirectMessageReactions = 8192Associated with the following events:
MessageReactionAdd, MessageReactionRemove, MessageReactionRemoveAll, MessageReactionRemoveEmojiDirectMessageTyping = 16384Associated with the following events:
TypingStartDirectMessages = 4096Associated with the following events:
MessageCreate, MessageUpdate, MessageDelete, ChannelPinsUpdateGuildEmojisAndStickers = 8Associated with the following events:
GuildEmojisUpdate, GuildStickersUpdateGuildIntegrations = 16Associated with the following events:
GuildIntegrationsUpdate, GuildIntegrationCreate, GuildIntegrationUpdate, GuildIntegrationDeleteGuildInvites = 64Associated with the following events:
InviteCreate, InviteDeleteGuildMessagePolls = 16777216GuildMessageReactions = 1024Associated with the following events:
MessageReactionAdd, MessageReactionRemove, MessageReactionRemoveAll, MessageReactionRemoveEmojiGuildMessageTyping = 2048Associated with the following events:
TypingStartGuildMessages = 512Associated with the following events:
MessageCreate, MessageUpdate, MessageDelete, MessageDeleteBulkGuildModeration = 4Associated with the following events:
GuildAuditLogEntryCreate, GuildBanAdd, GuildBanRemoveGuildPresences = 256Privileged, associated with the following events:
PresenceUpdateGuildScheduledEvents = 65536Associated with the following events:
GuildScheduledEventCreate, GuildScheduledEventUpdate, GuildScheduledEventDelete, GuildScheduledEventUserAdd, GuildScheduledEventUserRemoveGuildUsers = 2Privileged, associated with the following events:
GuildUserAdd, GuildUserUpdate, GuildUserRemove, GuildThreadUsersUpdateGuildVoiceStates = 128Associated with the following events:
VoiceChannelEffectSend VoiceStateUpdateGuildWebhooks = 32Associated with the following events:
WebhooksUpdateGuilds = 1Associated 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 = 32768Privileged, ssociated with the following events:
MessageCreate, MessageUpdate, MessageDelete, ChannelPinsUpdate