add MESSAGE_CONTENT intent (v13)

#8580 Discord.js v13.11
This commit is contained in:
March 7th 2022-09-04 18:24:19 +07:00
parent bbdf294330
commit 16f6cb7327
2 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class Intents extends BitField {}
* * `DIRECT_MESSAGES` * * `DIRECT_MESSAGES`
* * `DIRECT_MESSAGE_REACTIONS` * * `DIRECT_MESSAGE_REACTIONS`
* * `DIRECT_MESSAGE_TYPING` * * `DIRECT_MESSAGE_TYPING`
* * `MESSAGE_CONTENT`
* * `GUILD_SCHEDULED_EVENTS` * * `GUILD_SCHEDULED_EVENTS`
* @type {Object} * @type {Object}
* @see {@link https://discord.com/developers/docs/topics/gateway#list-of-intents} * @see {@link https://discord.com/developers/docs/topics/gateway#list-of-intents}
@ -60,6 +61,7 @@ Intents.FLAGS = {
DIRECT_MESSAGES: 1 << 12, DIRECT_MESSAGES: 1 << 12,
DIRECT_MESSAGE_REACTIONS: 1 << 13, DIRECT_MESSAGE_REACTIONS: 1 << 13,
DIRECT_MESSAGE_TYPING: 1 << 14, DIRECT_MESSAGE_TYPING: 1 << 14,
MESSAGE_CONTENT: 1 << 15,
GUILD_SCHEDULED_EVENTS: 1 << 16, GUILD_SCHEDULED_EVENTS: 1 << 16,
}; };

1
typings/index.d.ts vendored
View File

@ -5845,6 +5845,7 @@ export type IntentsString =
| 'DIRECT_MESSAGES' | 'DIRECT_MESSAGES'
| 'DIRECT_MESSAGE_REACTIONS' | 'DIRECT_MESSAGE_REACTIONS'
| 'DIRECT_MESSAGE_TYPING' | 'DIRECT_MESSAGE_TYPING'
| 'MESSAGE_CONTENT'
| 'GUILD_SCHEDULED_EVENTS'; | 'GUILD_SCHEDULED_EVENTS';
export interface InviteGenerationOptions { export interface InviteGenerationOptions {