From a4c50ae922e018227c731c0ff9895159546e9b6a Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 30 Apr 2025 15:17:45 -0500 Subject: [PATCH] forgot to test on rebuild --- src/api/routes/guilds/#guild_id/channels.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 5b07ae81..179128eb 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -163,6 +163,8 @@ router.patch( const parentPos = notMentioned.indexOf(parent.id); notMentioned.splice(parentPos + 1, 0, channel.id); channel.position = (parentPos + 1) as number; + channel.parent = parent; + await channel.save(); await emitEvent({ event: "CHANNEL_UPDATE",