add guide

This commit is contained in:
Skillz
2020-08-07 23:19:21 -04:00
parent 94a9dd16b0
commit 56081b1687
11 changed files with 833 additions and 127 deletions
+5
View File
@@ -205,5 +205,10 @@ export function higherRolePosition(
const otherRole = guild.roles.get(otherRoleID);
if (!role || !otherRole) return;
// Rare edge case handling
if (role.position === otherRole.position) {
return role.id < otherRole.id
}
return role.position > otherRole.position;
}