Skip to content

Commit

Permalink
Support useSlashCommands permission
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Apr 3, 2021
1 parent 9d3958f commit 906690c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1113,10 +1113,11 @@ declare namespace Eris {
manageRoles: 268435456n;
manageWebhooks: 536870912n;
manageEmojis: 1073741824n;
useSlashCommands: 2147483648n;
allGuild: 2080899262n;
allText: 805829713n;
allText: 2953313361n;
allVoice: 334497553n;
all: 2147483647n;
all: 4294967295n;
};
REST_VERSION: 7;
StickerFormats: {
Expand Down
6 changes: 4 additions & 2 deletions lib/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const Permissions = {
manageNicknames: 1n << 27n,
manageRoles: 1n << 28n,
manageWebhooks: 1n << 29n,
manageEmojis: 1n << 30n
manageEmojis: 1n << 30n,
useSlashCommands: 1n << 31n
};
Permissions.allGuild = Permissions.kickMembers
| Permissions.banMembers
Expand All @@ -91,7 +92,8 @@ Permissions.allText = Permissions.createInstantInvite
| Permissions.mentionEveryone
| Permissions.externalEmojis
| Permissions.manageRoles
| Permissions.manageWebhooks;
| Permissions.manageWebhooks
| Permissions.useSlashCommands;
Permissions.allVoice = Permissions.createInstantInvite
| Permissions.manageChannels
| Permissions.voicePrioritySpeaker
Expand Down

0 comments on commit 906690c

Please sign in to comment.