From 190941765b1b6aba89e6985b3c92631e1a97c368 Mon Sep 17 00:00:00 2001 From: Jaw0r3k Date: Thu, 23 Mar 2023 22:03:12 +0100 Subject: [PATCH] Update Role.js --- 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 b3c502367450..0664b6a3f91a 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);