From 3183b1166a8c96f8864f7307710f88193217a773 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Thu, 9 Sep 2021 18:51:21 +0100 Subject: [PATCH] fix(Message): pinnable returning false in non-DEFAULT messages (#6585) --- src/structures/Message.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 22a2e8526..5f7507597 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -570,9 +570,9 @@ class Message extends Base { * @readonly */ get pinnable() { - return ( - this.type === 'DEFAULT' && - (!this.guild || this.channel.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_MESSAGES, false)) + return Boolean( + !this.system && + (!this.guild || this.channel.permissionsFor(this.client.user)?.has(Permissions.FLAGS.MANAGE_MESSAGES, false)), ); }