mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Role): calculate position correctly when rawPositions are equal (#9871)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -205,7 +205,7 @@ class Role extends Base {
|
||||
(acc, role) =>
|
||||
acc +
|
||||
(this.rawPosition === role.rawPosition
|
||||
? BigInt(this.id) > BigInt(role.id)
|
||||
? BigInt(this.id) < BigInt(role.id)
|
||||
: this.rawPosition > role.rawPosition),
|
||||
0,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user