diff --git a/src/structures/Message.js b/src/structures/Message.js index d07e2285c083..ea01220ae59b 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -386,10 +386,10 @@ class Message extends Base { * @readonly */ get deletable() { - return ( + return Boolean( !this.deleted && - (this.author.id === this.client.user.id || - (this.guild && this.channel.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_MESSAGES, false))) + (this.author.id === this.client.user.id || + this.channel.permissionsFor?.(this.client.user)?.has(Permissions.FLAGS.MANAGE_MESSAGES)), ); }