Skip to content

Commit

Permalink
feat(Permissions): add MODERATE_MEMBERS
Browse files Browse the repository at this point in the history
  • Loading branch information
GamingGeek committed Dec 1, 2021
1 parent 7d218b2 commit cd93f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/util/Permissions.js
Expand Up @@ -98,6 +98,7 @@ class Permissions extends BitField {
* * `USE_EXTERNAL_STICKERS` (use stickers from different guilds)
* * `SEND_MESSAGES_IN_THREADS`
* * `START_EMBEDDED_ACTIVITIES`
* * `MODERATE_MEMBERS`
* @type {Object<string, bigint>}
* @see {@link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags}
*/
Expand Down Expand Up @@ -144,6 +145,7 @@ Permissions.FLAGS = {
USE_EXTERNAL_STICKERS: 1n << 37n,
SEND_MESSAGES_IN_THREADS: 1n << 38n,
START_EMBEDDED_ACTIVITIES: 1n << 39n,
MODERATE_MEMBERS: 1n << 40n,
};

/**
Expand Down
3 changes: 2 additions & 1 deletion typings/index.d.ts
Expand Up @@ -4904,7 +4904,8 @@ export type PermissionString =
| 'CREATE_PRIVATE_THREADS'
| 'USE_EXTERNAL_STICKERS'
| 'SEND_MESSAGES_IN_THREADS'
| 'START_EMBEDDED_ACTIVITIES';
| 'START_EMBEDDED_ACTIVITIES'
| 'MODERATE_MEMBERS';

export type RecursiveArray<T> = ReadonlyArray<T | RecursiveArray<T>>;

Expand Down

0 comments on commit cd93f5e

Please sign in to comment.