Skip to content

Commit

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
vladfrangu and kodiakhq[bot] committed 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
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.