Skip to content

Commit

Permalink
Change "break" to "return"
Browse files Browse the repository at this point in the history
Fix command still trying to run even if the user/bot doesn't have perms.
  • Loading branch information
notunderctrl committed Jan 9, 2023
1 parent ae3772c commit 9dd8877
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = async (client, interaction) => {
content: 'Not enough permissions.',
ephemeral: true,
});
break;
return;
}
}
}
Expand All @@ -54,7 +54,7 @@ module.exports = async (client, interaction) => {
content: "I don't have enough permissions.",
ephemeral: true,
});
break;
return;
}
}
}
Expand Down

0 comments on commit 9dd8877

Please sign in to comment.