Webpack build for branch master: 2beb77ab5c

This commit is contained in:
Travis CI 2017-01-28 10:09:45 +00:00
parent 06a3f18e2d
commit 4604c040b7
2 changed files with 11 additions and 1 deletions

View file

@ -4640,6 +4640,16 @@ class GuildChannel extends Channel {
return equal;
}
/**
* Whether the channel is deletable by the client user.
* @type {boolean}
* @readonly
*/
get deletable() {
return this.id !== this.guild.id &&
this.permissionsFor(this.client.user).hasPermission(Constants.PermissionFlags.MANAGE_CHANNELS);
}
/**
* When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
* @returns {string}

File diff suppressed because one or more lines are too long