Skip to content

Commit

Permalink
feat(ApplicationFlags): add message content intent flags (#6888)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 committed Nov 1, 2021
1 parent 076524a commit e94073a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/util/ApplicationFlags.js
Expand Up @@ -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}
*/
Expand All @@ -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 changes: 3 additions & 1 deletion typings/index.d.ts
Expand Up @@ -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'];
Expand Down

0 comments on commit e94073a

Please sign in to comment.