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.
1 parent 79bcdfa commit d4c1fecCopy full SHA for d4c1fec
packages/discord.js/src/structures/Message.js
@@ -608,7 +608,7 @@ class Message extends Base {
608
if (this.channel?.isThread()) {
609
if (this.channel.archived) return false;
610
if (this.channel.locked) {
611
- const permissions = this.permissionsFor(this.client.user);
+ const permissions = this.channel.permissionsFor(this.client.user);
612
if (!permissions?.has(PermissionFlagsBits.ManageThreads, true)) return false;
613
}
614
0 commit comments