Webpack build for branch master: 0b5eeb08f3

This commit is contained in:
Travis CI 2017-02-04 02:39:18 +00:00
parent c32ac4e0c8
commit 717c7d9dc0
2 changed files with 5 additions and 3 deletions

View file

@ -4649,10 +4649,12 @@ class GuildChannel extends Channel {
* Clone this channel
* @param {string} [name=this.name] Optional name for the new channel, otherwise it has the name of this channel
* @param {boolean} [withPermissions=true] Whether to clone the channel with this channel's permission overwrites
* @param {boolean} [withTopic=true] Whether to clone the channel with this channel's topic
* @returns {Promise<GuildChannel>}
*/
clone(name = this.name, withPermissions = true) {
return this.guild.createChannel(name, this.type, withPermissions ? this.permissionOverwrites : []);
clone(name = this.name, withPermissions = true, withTopic = true) {
return this.guild.createChannel(name, this.type, withPermissions ? this.permissionOverwrites : [])
.then(channel => withTopic ? channel.setTopic(this.topic) : channel);
}
/**

File diff suppressed because one or more lines are too long