From 980d71f307cb62b47dac30bd45431bb859d622a1 Mon Sep 17 00:00:00 2001 From: Souji Date: Tue, 6 Nov 2018 20:01:48 +0100 Subject: [PATCH] fix:(GuilChannel): clone method not taking overwrites into account (#2932) --- src/structures/GuildChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 72e5db5af..ee6592f5c 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -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, });