mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 04:31:05 +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) {
|
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,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue