Skip to content

Commit

Permalink
fix(Role): calculate position correctly when rawPositions are equal (#…
Browse files Browse the repository at this point in the history
…9871)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
vladfrangu and kodiakhq[bot] authored Oct 7, 2023
1 parent f586283 commit 0529b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Role.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 0529b2a

Please sign in to comment.