diff --git "a/src/api/routes/guilds/\043guild_id/channels.ts" "b/src/api/routes/guilds/\043guild_id/channels.ts" index 0160641..8f8ee3a 100644 --- "a/src/api/routes/guilds/\043guild_id/channels.ts" +++ "b/src/api/routes/guilds/\043guild_id/channels.ts" @@ -146,8 +146,8 @@ where: { id: opt.id }, }); - channel.position = opt.position as number; notMentioned.splice(opt.position as number, 0, channel.id); + channel.position = notMentioned.findIndex((_) => _ === channel.id); await emitEvent({ event: "CHANNEL_UPDATE",