mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
add guide
This commit is contained in:
@@ -205,5 +205,10 @@ export function higherRolePosition(
|
||||
const otherRole = guild.roles.get(otherRoleID);
|
||||
if (!role || !otherRole) return;
|
||||
|
||||
// Rare edge case handling
|
||||
if (role.position === otherRole.position) {
|
||||
return role.id < otherRole.id
|
||||
}
|
||||
|
||||
return role.position > otherRole.position;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user