fix(GuildChannel): setParent not working (#6276)

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
Rodry
2021-08-02 19:38:30 +01:00
committed by GitHub
parent 6e0ea020c0
commit 7e0618f17a

View File

@@ -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,