From bf0fde611c1f79e70fc36b5b62acc769006e17e6 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 7 Apr 2023 20:36:02 +0700 Subject: [PATCH] fix(Message): Fix permissions check in locked threads #9338 djs --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 80c5786..0e37cdf 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -607,7 +607,7 @@ class Message extends Base { if (this.channel?.isThread()) { if (this.channel.archived) return false; if (this.channel.locked) { - const permissions = this.permissionsFor(this.client.user); + const permissions = this.channel.permissionsFor(this.client.user); if (!permissions?.has(Permissions.FLAGS.MANAGE_THREADS, true)) return false; } }