Webpack build for branch master: 0c16859746

This commit is contained in:
Travis CI 2017-12-21 08:37:49 +00:00
parent 1d2337100d
commit e72dc95980
2 changed files with 4 additions and 18 deletions

View file

@ -3697,15 +3697,14 @@ class GuildChannel extends Channel {
/**
* Sets the category parent of this channel.
* @param {?GuildChannel|Snowflake} channel Parent channel
* @param {Object} [options={}] Options to pass
* @param {boolean} [options.lockPermissions=true] Lock the permissions to what the parent's permissions are
* @param {GuildChannel|Snowflake} channel Parent channel
* @param {boolean} [options.lockPermissions] Lock the permissions to what the parent's permissions are
* @param {string} [options.reason] Reason for modifying the parent of this channel
* @returns {Promise<GuildChannel>}
*/
setParent(channel, { lockPermissions = true, reason } = {}) {
return this.edit({
parentID: channel !== null ? channel.id ? channel.id : channel : null,
parentID: channel.id ? channel.id : channel,
lockPermissions,
}, reason);
}
@ -11576,19 +11575,6 @@ class CategoryChannel extends GuildChannel {
get children() {
return this.guild.channels.filter(c => c.parentID === this.id);
}
/**
* Sets the category parent of this channel.
* <warn>It is not currently possible to set the parent of a CategoryChannel.</warn>
* @method setParent
* @memberof CategoryChannel
* @instance
* @param {?GuildChannel|Snowflake} channel Parent channel
* @param {Object} [options={}] Options to pass
* @param {boolean} [options.lockPermissions=true] Lock the permissions to what the parent's permissions are
* @param {string} [options.reason] Reason for modifying the parent of this channel
* @returns {Promise<GuildChannel>}
*/
}
module.exports = CategoryChannel;

File diff suppressed because one or more lines are too long