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