mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
fix(GuildChannel): setParent not working (#6276)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
@@ -388,7 +388,7 @@ class GuildChannel extends Channel {
|
|||||||
setParent(channel, { lockPermissions = true, reason } = {}) {
|
setParent(channel, { lockPermissions = true, reason } = {}) {
|
||||||
return this.edit(
|
return this.edit(
|
||||||
{
|
{
|
||||||
parentId: channel?.id ?? channel ?? null,
|
parent: channel ?? null,
|
||||||
lockPermissions,
|
lockPermissions,
|
||||||
},
|
},
|
||||||
reason,
|
reason,
|
||||||
|
|||||||
Reference in New Issue
Block a user