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

GatewayIntents()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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
allPrivileged → const int
All privileged intents
allUnprivileged → const int
All unprivileged intents
directMessageReactions → const int
Includes events: MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, MESSAGE_REACTION_REMOVE_ALL, MESSAGE_REACTION_REMOVE_EMOJI
directMessages → const int
Includes events: CHANNEL_CREATE, MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, CHANNEL_PINS_UPDATE
directMessageTyping → const int
Includes events: TYPING_START
guildBans → const int
Includes events: GUILD_BAN_ADD, GUILD_BAN_REMOVE
guildEmojis → const int
Includes event: GUILD_EMOJIS_UPDATE
guildIntegrations → const int
Includes events: GUILD_INTEGRATIONS_UPDATE
guildInvites → const int
Includes events: INVITE_CREATE, INVITE_DELETE
guildMembers → const int
Includes events: GUILD_MEMBER_ADD, GUILD_MEMBER_UPDATE, GUILD_MEMBER_REMOVE
guildMessageReactions → const int
Includes events: MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, MESSAGE_REACTION_REMOVE_ALL, MESSAGE_REACTION_REMOVE_EMOJI
guildMessages → const int
Include events: MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, MESSAGE_DELETE_BULK
guildMessageTyping → const int
Includes events: TYPING_START
guildPresences → const int
Includes events: PRESENCE_UPDATE
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
guildVoiceState → const int
Includes events: VOICE_STATE_UPDATE
guildWebhooks → const int
Includes events: WEBHOOKS_UPDATE
none → const int
No intents. Client shouldn't receive any events.