fix:(GuilChannel): clone method not taking overwrites into account (#2932)

This commit is contained in:
Souji
2018-11-06 20:01:48 +01:00
committed by SpaceEEC
parent b3f459091f
commit 980d71f307

View File

@@ -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,
});