mirror of
https://github.com/danbulant/discord.js
synced 2026-05-30 21:01:20 +00:00
fix:(GuilChannel): clone method not taking overwrites into account (#2932)
This commit is contained in:
parent
b3f459091f
commit
980d71f307
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue