fix: correct role position calculation in resolvePosition method

This commit is contained in:
MythEclipse
2026-05-18 20:30:49 +07:00
parent dd22f0bb1f
commit 4a504639cd
+1 -1
View File
@@ -43,7 +43,7 @@ export class DiscordRoleRepository implements RoleRepository {
if (!this.anchorRoleId) return fallbackPosition;
const anchor = await this.fetchRole(this.anchorRoleId);
return Math.max(anchor.position - 1, 1);
return Math.max(anchor.position, 1);
}
private async fetchRole(roleId: string): Promise<Role> {