Skip to content

Commit

Permalink
Fix check for GuildChannel#deletable (#1925)
Browse files Browse the repository at this point in the history
You can now delete any channel you want, even if its ID is the same as the guild ID
  • Loading branch information
Frangu Vlad authored and iCrawl committed Sep 10, 2017
1 parent fc1e78e commit 3767b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/structures/GuildChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 3767b35

Please sign in to comment.