From 3767b351898b6ab6bd0c562ff9b94b19af13c634 Mon Sep 17 00:00:00 2001 From: Frangu Vlad Date: Sun, 10 Sep 2017 15:25:33 +0300 Subject: [PATCH] Fix check for GuildChannel#deletable (#1925) You can now delete any channel you want, even if its ID is the same as the guild ID --- src/structures/GuildChannel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 2fd05c937..9a03e5b46 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -388,8 +388,7 @@ class GuildChannel extends Channel { * @readonly */ get deletable() { - return this.id !== this.guild.id && - this.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_CHANNELS); + return this.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_CHANNELS); } /**