mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Webpack build for branch master: 0c16859746
This commit is contained in:
parent
1d2337100d
commit
e72dc95980
2 changed files with 4 additions and 18 deletions
|
|
@ -3697,15 +3697,14 @@ class GuildChannel extends Channel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the category parent of this channel.
|
* Sets the category parent of this channel.
|
||||||
* @param {?GuildChannel|Snowflake} channel Parent channel
|
* @param {GuildChannel|Snowflake} channel Parent channel
|
||||||
* @param {Object} [options={}] Options to pass
|
* @param {boolean} [options.lockPermissions] Lock the permissions to what the parent's permissions are
|
||||||
* @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
|
* @param {string} [options.reason] Reason for modifying the parent of this channel
|
||||||
* @returns {Promise<GuildChannel>}
|
* @returns {Promise<GuildChannel>}
|
||||||
*/
|
*/
|
||||||
setParent(channel, { lockPermissions = true, reason } = {}) {
|
setParent(channel, { lockPermissions = true, reason } = {}) {
|
||||||
return this.edit({
|
return this.edit({
|
||||||
parentID: channel !== null ? channel.id ? channel.id : channel : null,
|
parentID: channel.id ? channel.id : channel,
|
||||||
lockPermissions,
|
lockPermissions,
|
||||||
}, reason);
|
}, reason);
|
||||||
}
|
}
|
||||||
|
|
@ -11576,19 +11575,6 @@ class CategoryChannel extends GuildChannel {
|
||||||
get children() {
|
get children() {
|
||||||
return this.guild.channels.filter(c => c.parentID === this.id);
|
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;
|
module.exports = CategoryChannel;
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue