From 4a504639cdafa9d9ca4f9cbe75bd460883b94ca9 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Mon, 18 May 2026 20:30:49 +0700 Subject: [PATCH] fix: correct role position calculation in resolvePosition method --- src/services/discordRoleRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/discordRoleRepository.ts b/src/services/discordRoleRepository.ts index 5ddaf07..e9cd936 100644 --- a/src/services/discordRoleRepository.ts +++ b/src/services/discordRoleRepository.ts @@ -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 {