This commit is contained in:
Skillz
2020-08-11 08:26:13 -04:00
parent 13457df59c
commit 9a40ffb2d0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ export function memberIDHasPermission(
const member = guild.members.get(memberID);
if (!member) return false;
return memberHasPermission(member.guildID, guild, member.roles, permissions)
return memberHasPermission(member.guildID, guild, member.roles, permissions);
}
/** Checks if the member has this permission. If the member is an owner or has admin perms it will always be true. */
@@ -224,7 +224,7 @@ export function higherRolePosition(
// Rare edge case handling
if (role.position === otherRole.position) {
return role.id < otherRole.id
return role.id < otherRole.id;
}
return role.position > otherRole.position;