From c5859337b616c1fe2a60884595d27db4f13d8fee Mon Sep 17 00:00:00 2001 From: "Matt (IPv4) Cowley" Date: Sat, 12 Jun 2021 12:10:01 +0100 Subject: [PATCH] fix(GuildChannel): don't force parentID/permissionOverwrites to empty on create (#5823) --- src/structures/GuildChannel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index d9ed9624f..5fc187902 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -36,8 +36,8 @@ class GuildChannel extends Channel { */ this.guild = guild; - this.parentID = null; - this.permissionOverwrites = new Collection(); + this.parentID = this.parentID ?? null; + this.permissionOverwrites = this.permissionOverwrites ?? new Collection(); } _patch(data) {