GatewayIntents class Null safety
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-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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
- allUnprivileged → const int
-
All unprivileged intents
guilds | guildBans | guildEmojis | guildIntegrations | guildWebhooks | guildInvites | guildVoiceState | guildMessages | guildMessageReactions | guildMessageTyping | directMessages | directMessageReact…
- 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
- guildVoiceState → const int
-
Includes events:
VOICE_STATE_UPDATE
1 << 7
- guildWebhooks → const int
-
Includes events:
WEBHOOKS_UPDATE
1 << 5