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
This commit is contained in:
Frangu Vlad
2017-09-10 15:25:33 +03:00
committed by Crawl
parent fc1e78e545
commit 3767b35189

View File

@@ -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);
}
/**