feat(ApplicationFlags): add message content intent flags (#6888)

This commit is contained in:
Advaith
2021-11-01 10:50:23 -07:00
committed by GitHub
parent 076524a064
commit e94073a6ab
2 changed files with 7 additions and 1 deletions

View File

@@ -29,6 +29,8 @@ class ApplicationFlags extends BitField {}
* * `GATEWAY_GUILD_MEMBERS_LIMITED`
* * `VERIFICATION_PENDING_GUILD_LIMIT`
* * `EMBEDDED`
* * `GATEWAY_MESSAGE_CONTENT`
* * `GATEWAY_MESSAGE_CONTENT_LIMITED`
* @type {Object}
* @see {@link https://discord.com/developers/docs/resources/application#application-object-application-flags}
*/
@@ -39,6 +41,8 @@ ApplicationFlags.FLAGS = {
GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
EMBEDDED: 1 << 17,
GATEWAY_MESSAGE_CONTENT: 1 << 18,
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
};
module.exports = ApplicationFlags;

4
typings/index.d.ts vendored
View File

@@ -3383,7 +3383,9 @@ export type ApplicationFlagsString =
| 'GATEWAY_GUILD_MEMBERS'
| 'GATEWAY_GUILD_MEMBERS_LIMITED'
| 'VERIFICATION_PENDING_GUILD_LIMIT'
| 'EMBEDDED';
| 'EMBEDDED'
| 'GATEWAY_MESSAGE_CONTENT'
| 'GATEWAY_MESSAGE_CONTENT_LIMITED';
export interface AuditLogChange {
key: APIAuditLogChange['key'];