Intents
Intents ⇐ Bitfield
Section titled “Intents ⇐ Bitfield”Represents the intents that the bot wishes to subscribe to.
Kind: global class
Extends: Bitfield
- Intents ⇐
Bitfield- new Intents(…bit)
- .Default :
bigint - .All ⇒
- .Flags :
enum
new Intents(…bit)
Section titled “new Intents(…bit)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| …bit | bigint | The arguments to pass to the superclass constructor. |
Intents.Default : bigint
Section titled “Intents.Default : bigint”Sets the default value for the Intents enum to 0.
Kind: static property of Intents
Read only: true
Intents.All ⇒
Section titled “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.
| Param | Type | Description |
|---|---|---|
| All | bigint | All bit value. |
Intents.Flags : enum
Section titled “Intents.Flags : enum”Represents the flags for different intents in Discord.
Kind: static enum of Intents
Read only: true
Properties
| Name | Type | Default |
|---|---|---|
| Guilds | bigint | |
| Guild_Members | bigint | |
| Guild_Moderation | bigint | |
| Guild_Emojis_And_Stickers | bigint | |
| Guild_Integrations | bigint | |
| Guild_Webhooks | bigint | |
| Guild_Invites | bigint | |
| Guild_Voice_States | bigint | |
| Guild_Presences | bigint | |
| Guild_Messages | bigint | |
| Guild_Message_Reactions | bigint | |
| Guild_Message_Typing | bigint | |
| Direct_Messages | bigint | |
| Direct_Message_Reactions | bigint | |
| Direct_Message_Typing | bigint | |
| Message_Content | bigint | |
| Guild_Scheduled_Events | bigint | |
| Auto_Moderation_Configuration | bigint | |
| Auto_Moderation_Execution | bigint | |