From 7e0618f17a786708093bc532501b261191e85561 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Mon, 2 Aug 2021 19:38:30 +0100 Subject: [PATCH] fix(GuildChannel): setParent not working (#6276) 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 39f7009d7d2b..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( { - parentId: channel?.id ?? channel ?? null, + parent: channel ?? null, lockPermissions, }, reason,