From 1550ccd099791dd1efb182215c354d832803350f Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 30 Apr 2025 22:05:36 -0500 Subject: [PATCH] don't set possition if sent --- src/api/routes/guilds/#guild_id/channels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index fe1b8d4b..bcf6ae27 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -164,7 +164,7 @@ router.patch( { id: channel.id }, { permission_overwrites: parent.permission_overwrites }, ); - if (parent) { + if (parent && opt.position === undefined) { const parentPos = notMentioned.indexOf(parent.id); notMentioned.splice(parentPos + 1, 0, channel.id); channel.position = (parentPos + 1) as number;