From b93da65944615d7a995755aa1a350d8a1476d8f6 Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 3 Apr 2023 22:16:53 +0200 Subject: [PATCH] Minor fix to not send app if member not meet reqs --- events/buttons/staffapply.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/events/buttons/staffapply.js b/events/buttons/staffapply.js index 5df3121..5982156 100644 --- a/events/buttons/staffapply.js +++ b/events/buttons/staffapply.js @@ -28,16 +28,19 @@ module.exports = { if (!userRoles.has(guildRole)) { await interaction.editReply({content: "You must be a member of the guild to apply for staff.", ephemeral: true}); + return } if (userRoles.has(guildStaff)) { await interaction.editReply({content: "You are already a staff member.", ephemeral: true}); + return } const application = await staffapp.findOne({ userID: user.id }); if (application) { await interaction.editReply({ content: "You already have an application in progress.", ephemeral: true }); + return } const tooLong = new EmbedBuilder()