don't set possition if sent

This commit is contained in:
MathMan05 2025-04-30 22:05:36 -05:00 committed by Rory&
parent 246b493d76
commit 1550ccd099

View File

@ -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;