Webpack build for branch master: 2249da464f

This commit is contained in:
Travis CI 2018-01-11 18:48:03 +00:00
parent 3643075171
commit a9282a3dd2
2 changed files with 4 additions and 4 deletions

View file

@ -3366,7 +3366,7 @@ class GuildMember extends Base {
* .catch(console.error);
*/
ban(options) {
return this.guild.ban(this, options);
return this.guild.members.ban(this, options);
}
/**
@ -3807,8 +3807,8 @@ class GuildChannel extends Channel {
* @returns {Promise<GuildChannel>}
*/
clone({ name = this.name, withPermissions = true, withTopic = true, reason } = {}) {
const options = { overwrites: withPermissions ? this.permissionOverwrites : [], reason };
return this.guild.createChannel(name, this.type, options)
const options = { overwrites: withPermissions ? this.permissionOverwrites : [], reason, type: this.type };
return this.guild.channels.create(name, options)
.then(channel => withTopic ? channel.setTopic(this.topic) : channel);
}

File diff suppressed because one or more lines are too long