diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index bcf6ae27..a2add70f 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -170,7 +170,7 @@ router.patch( channel.position = (parentPos + 1) as number; } channel.parent = parent || undefined; - channel.parent_id = null; + channel.parent_id = parent?.id || null; await channel.save(); await emitEvent({