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()
Constructs intens config object
GatewayIntents.all()
Return config with turned on all intents

Properties

directMessageReactions bool
Includes events: MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, MESSAGE_REACTION_REMOVE_ALL, MESSAGE_REACTION_REMOVE_EMOJI
read / write
directMessages bool
Includes events: CHANNEL_CREATE, MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, CHANNEL_PINS_UPDATE
read / write
directMessageTyping bool
Includes events: TYPING_START
read / write
guildBans bool
Includes events: GUILD_BAN_ADD, GUILD_BAN_REMOVE
read / write
guildEmojis bool
Includes event: GUILD_EMOJIS_UPDATE
read / write
guildIntegrations bool
Includes events: GUILD_INTEGRATIONS_UPDATE
read / write
guildInvites bool
Includes events: INVITE_CREATE, INVITE_DELETE
read / write
guildMembers bool
Includes events: GUILD_MEMBER_ADD, GUILD_MEMBER_UPDATE, GUILD_MEMBER_REMOVE
read / write
guildMessageReactions bool
Includes events: MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, MESSAGE_REACTION_REMOVE_ALL, MESSAGE_REACTION_REMOVE_EMOJI
read / write
guildMessages bool
Include events: MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, MESSAGE_DELETE_BULK
read / write
guildMessageTyping bool
Includes events: TYPING_START
read / write
guildPresences bool
Includes events: PRESENCE_UPDATE
read / write
guilds bool
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
read / write
guildVoiceState bool
Includes events: VOICE_STATE_UPDATE
read / write
guildWebhooks bool
Includes events: WEBHOOKS_UPDATE
read / write
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
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited