mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 15:11:32 +00:00
Webpack build for branch master: 2249da464f
This commit is contained in:
parent
3643075171
commit
a9282a3dd2
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
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