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
+1 -1
View File
@@ -89,7 +89,7 @@ export async function addReactions(
); );
} else { } else {
for (const reaction of reactions) { for (const reaction of reactions) {
await addReaction(channelID, messageID, reaction) await addReaction(channelID, messageID, reaction);
} }
} }
} }
+2 -2
View File
@@ -21,7 +21,7 @@ export function memberIDHasPermission(
const member = guild.members.get(memberID); const member = guild.members.get(memberID);
if (!member) return false; 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. */ /** 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 // Rare edge case handling
if (role.position === otherRole.position) { if (role.position === otherRole.position) {
return role.id < otherRole.id return role.id < otherRole.id;
} }
return role.position > otherRole.position; return role.position > otherRole.position;