Skip to content

Intents

Intents ⇐ Bitfield

Represents the intents that the bot wishes to subscribe to.

Kind: global class
Extends: Bitfield

new Intents(…bit)

Constructs a new instance of the class.

ParamTypeDescription
…bitbigintThe arguments to pass to the superclass constructor.

Intents.Default : bigint

Sets the default value for the Intents enum to 0.

Kind: static property of Intents
Read only: true

Intents.All ⇒

Combines all the values of the Intents.Flags object using a bitwise OR operation and assigns the result to the Intents.All property.

Kind: static property of Intents
Returns: The calculated value of Intents.All.

ParamTypeDescription
AllbigintAll bit value.

Intents.Flags : enum

Represents the flags for different intents in Discord.

Kind: static enum of Intents
Read only: true
Properties

NameTypeDefault
Guildsbigint
Guild_Membersbigint
Guild_Moderationbigint
Guild_Emojis_And_Stickersbigint
Guild_Integrationsbigint
Guild_Webhooksbigint
Guild_Invitesbigint
Guild_Voice_Statesbigint
Guild_Presencesbigint
Guild_Messagesbigint
Guild_Message_Reactionsbigint
Guild_Message_Typingbigint
Direct_Messagesbigint
Direct_Message_Reactionsbigint
Direct_Message_Typingbigint
Message_Contentbigint
Guild_Scheduled_Eventsbigint
Auto_Moderation_Configurationbigint
Auto_Moderation_Executionbigint