mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
fix:(GuilChannel): clone method not taking overwrites into account (#2932)
This commit is contained in:
@@ -401,7 +401,7 @@ class GuildChannel extends Channel {
|
|||||||
clone(name = this.name, withPermissions = true, withTopic = true, reason) {
|
clone(name = this.name, withPermissions = true, withTopic = true, reason) {
|
||||||
return this.guild.createChannel(name, {
|
return this.guild.createChannel(name, {
|
||||||
type: this.type,
|
type: this.type,
|
||||||
overwritePermissions: withPermissions ? this.overwritePermissions : undefined,
|
permissionOverwrites: withPermissions ? this.permissionOverwrites : undefined,
|
||||||
topic: withTopic ? this.topic : undefined,
|
topic: withTopic ? this.topic : undefined,
|
||||||
reason,
|
reason,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user