mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03: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, role) =>
|
||||||
acc +
|
acc +
|
||||||
(this.rawPosition === role.rawPosition
|
(this.rawPosition === role.rawPosition
|
||||||
? BigInt(this.id) > BigInt(role.id)
|
? BigInt(this.id) < BigInt(role.id)
|
||||||
: this.rawPosition > role.rawPosition),
|
: this.rawPosition > role.rawPosition),
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user