Skip to content

Commit

Permalink
docs: fix compare position example (#9272)
Browse files Browse the repository at this point in the history
Update Role.js

Co-authored-by: space <spaceeec@yahoo.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 1, 2023
1 parent de1aac6 commit d16114c
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 @@ -196,7 +196,7 @@ class Role extends Base {
* @example
* // Compare the position of a role to another
* const roleCompare = role.comparePositionTo(otherRole);
* if (roleCompare === 1) console.log(`${role.name} is higher than ${otherRole.name}`);
* if (roleCompare >= 1) console.log(`${role.name} is higher than ${otherRole.name}`);
*/
comparePositionTo(role) {
return this.guild.roles.comparePositions(this, role);
Expand Down

0 comments on commit d16114c

Please sign in to comment.