GatewayIntents class
When identifying to the gateway, you can specify an intents parameter which allows you to conditionally subscribe to pre-defined "intents", groups of events defined by Discord. If you do not specify a certain intent, you will not receive any of the gateway events that are batched into that group. Reference
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- all → const int
-
All intents
allUnprivileged | allPrivileged
- allPrivileged → const int
-
All privileged intents
guildMembers | guildPresences | messageContent
- allUnprivileged → const int
-
All unprivileged intents
guilds | guildBans | guildEmojis | guildIntegrations | guildWebhooks | guildInvites | guildVoiceState | guildMessages | guildMessageReactions | guildMessageTyping | directMessages | directMessageReact…
- autoModerationConfiguration → const int
-
Includes events:
AUTO_MODERATION_RULE_CREATE
,AUTO_MODERATION_RULE_UPDATE
,AUTO_MODERATION_RULE_DELETE
1 << 20
- autoModerationExecution → const int
-
Includes events:
AUTO_MODERATION_ACTION_EXECUTION
1 << 21
- directMessageReactions → const int
-
Includes events:
MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, MESSAGE_REACTION_REMOVE_ALL, MESSAGE_REACTION_REMOVE_EMOJI
1 << 13
- directMessages → const int
-
Includes events:
CHANNEL_CREATE, MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, CHANNEL_PINS_UPDATE
1 << 12
- directMessageTyping → const int
-
Includes events:
TYPING_START
1 << 14
- guildBans → const int
-
Includes events:
GUILD_BAN_ADD, GUILD_BAN_REMOVE
1 << 2
- guildEmojis → const int
-
Includes event:
GUILD_EMOJIS_UPDATE
1 << 3
- guildIntegrations → const int
-
Includes events:
GUILD_INTEGRATIONS_UPDATE
1 << 4
- guildInvites → const int
-
Includes events:
INVITE_CREATE, INVITE_DELETE
1 << 6
- guildMembers → const int
-
Includes events:
GUILD_MEMBER_ADD, GUILD_MEMBER_UPDATE, GUILD_MEMBER_REMOVE
1 << 1
- guildMessageReactions → const int
-
Includes events:
MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, MESSAGE_REACTION_REMOVE_ALL, MESSAGE_REACTION_REMOVE_EMOJI
1 << 10
- guildMessages → const int
-
Include events:
MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, MESSAGE_DELETE_BULK
1 << 9
- guildMessageTyping → const int
-
Includes events:
TYPING_START
1 << 11
- guildPresences → const int
-
Includes events:
PRESENCE_UPDATE
1 << 8
- guilds → const int
-
Includes events:
GUILD_CREATE, GUILD_UPDATE, GUILD_DELETE, GUILD_ROLE_CREATE, GUILD_ROLE_UPDATE, GUILD_ROLE_DELETE, CHANNEL_DELETE, CHANNEL_CREATE, CHANNEL_UPDATE, CHANNEL_PINS_UPDATE
1 << 0
- guildScheduledEvents → const int
-
Includes events:
GUILD_SCHEDULED_EVENT_CREATE
,GUILD_SCHEDULED_EVENT_DELETE
,GUILD_SCHEDULED_EVENT_UPDATE
,GUILD_SCHEDULED_EVENT_USER_ADD
,GUILD_SCHEDULED_EVENT_USER_REMOVE
1 << 16
- guildVoiceState → const int
-
Includes events:
VOICE_STATE_UPDATE
1 << 7
- guildWebhooks → const int
-
Includes events:
WEBHOOKS_UPDATE
1 << 5
- messageContent → const int
-
Includes public content of messages in guilds (content, embeds, attachments, components)
If your bot is mentioned it will always receive full message
If you are not opted in for message content intent you will receive empty fields
1 << 15
- none → const int
-
No intents. Client shouldn't receive any events.
0