mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +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) {
|
||||
return this.guild.createChannel(name, {
|
||||
type: this.type,
|
||||
overwritePermissions: withPermissions ? this.overwritePermissions : undefined,
|
||||
permissionOverwrites: withPermissions ? this.permissionOverwrites : undefined,
|
||||
topic: withTopic ? this.topic : undefined,
|
||||
reason,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user