docs(Role): Fix example for comparePositionTo() (#9270)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Jiralite
2023-03-23 20:50:58 +00:00
committed by GitHub
parent c8c02f957d
commit bc641fa936

View File

@@ -193,7 +193,7 @@ class Role extends Base {
* @param {RoleResolvable} role Role to compare to this one
* @returns {number} Negative number if this role's position is lower (other role's is higher),
* positive number if this one is higher (other's is lower), 0 if equal
* * @example
* @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}`);