Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Apr 25, 2024
1 parent ad2707e commit fb45ed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handler/reactionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export default {
} else {
// Users with role deny ID shall not assign themselves roles. Don't care about removing them.
if (context.roleGuard.hasRoleDenyRole(member)) {
const reaction = await message.reactions.cache
.get("✅");
if(reaction === undefined) return;
const reaction =
await message.reactions.cache.get("✅");
if (reaction === undefined) return;

await reaction.users.remove(member.id);
return;
Expand Down

0 comments on commit fb45ed7

Please sign in to comment.