From 4fb6329d7564b876875ba9752febd0060e08789e Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Mon, 2 Aug 2021 19:17:41 +0100 Subject: [PATCH 1/2] fix(GuildChannel): setParent not working --- 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 39f7009d7d2b..2d03a047c18b 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -388,7 +388,7 @@ class GuildChannel extends Channel { setParent(channel, { lockPermissions = true, reason } = {}) { return this.edit( { - parentId: channel?.id ?? channel ?? null, + parent: channel?.id ?? channel ?? null, lockPermissions, }, reason, From bc27b919f06dace35b569a5423b2da98e9612ba0 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Mon, 2 Aug 2021 19:25:24 +0100 Subject: [PATCH 2/2] revert(GuildChannel): bring back fix from previous PR Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> --- 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 2d03a047c18b..1e5c5ce49971 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -388,7 +388,7 @@ class GuildChannel extends Channel { setParent(channel, { lockPermissions = true, reason } = {}) { return this.edit( { - parent: channel?.id ?? channel ?? null, + parent: channel ?? null, lockPermissions, }, reason,