Skip to content

Commit 4717666

Browse files
feat: Support Pin Messages permission (#1594)
1 parent 20f1276 commit 4717666

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/Constants.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,11 @@ export default interface Constants {
608608
setVoiceChannelStatus: 281474976710656n;
609609
sendPolls: 562949953421312n;
610610
useExternalApps: 1125899906842624n;
611+
pinMessages: 2251799813685248n;
611612
allGuild: 1155597391626430n;
612-
allText: 1759754133699665n;
613+
allText: 4011553947384913n;
613614
allVoice: 2080830385030929n;
614-
all: 2111062325329919n;
615+
all: 4362862139015167n;
615616
};
616617
PollLayoutTypes: {
617618
DEFAULT: 1;

lib/Constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ const Permissions = {
701701
setVoiceChannelStatus: 1n << 48n,
702702
sendPolls: 1n << 49n,
703703
useExternalApps: 1n << 50n,
704+
pinMessages: 1n << 51n,
704705
};
705706
Permissions.allGuild = Permissions.kickMembers
706707
| Permissions.banMembers
@@ -742,7 +743,8 @@ Permissions.allText = Permissions.createInstantInvite
742743
| Permissions.sendMessagesInThreads
743744
| Permissions.sendVoiceMessages
744745
| Permissions.sendPolls
745-
| Permissions.useExternalApps;
746+
| Permissions.useExternalApps
747+
| Permissions.pinMessages;
746748
Permissions.allVoice = Permissions.createInstantInvite
747749
| Permissions.manageChannels
748750
| Permissions.prioritySpeaker

0 commit comments

Comments
 (0)