don't set possition if sent

This commit is contained in:
MathMan05
2025-05-28 08:46:35 +02:00
committed by Rory&
parent 246b493d76
commit 1550ccd099
+1 -1
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;