From d16114c52646ca92c53f9b44a0dd10af98dbddcd Mon Sep 17 00:00:00 2001 From: Jaw0r3k Date: Sun, 2 Apr 2023 00:37:18 +0200 Subject: [PATCH] docs: fix compare position example (#9272) Update Role.js Co-authored-by: space Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/structures/Role.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/Role.js b/packages/discord.js/src/structures/Role.js index b3c502367..0664b6a3f 100644 --- a/packages/discord.js/src/structures/Role.js +++ b/packages/discord.js/src/structures/Role.js @@ -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);