We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pinnable
1 parent 89fd19e commit 59f3aceCopy full SHA for 59f3ace
packages/discord.js/src/structures/Message.js
@@ -785,7 +785,14 @@ class Message extends Base {
785
!this.system &&
786
(!this.guild ||
787
(channel?.viewable &&
788
- channel?.permissionsFor(this.client.user)?.has(PermissionFlagsBits.ManageMessages, false))),
+ channel
789
+ ?.permissionsFor(this.client.user)
790
+ ?.has(
791
+ this.guild?.features.includes('PIN_PERMISSION_MIGRATION_COMPLETE')
792
+ ? PermissionFlagsBits.PinMessages
793
+ : PermissionFlagsBits.ManageMessages,
794
+ false,
795
+ ))),
796
);
797
}
798
0 commit comments