From eb4f7143b9adb8361ecc26af4d2df01f2ac92881 Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 28 Mar 2023 22:25:50 +0200 Subject: [PATCH] Adding if statements for applications --- events/buttons/staffapply.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/events/buttons/staffapply.js b/events/buttons/staffapply.js index 85ba3bb..8cbf68b 100644 --- a/events/buttons/staffapply.js +++ b/events/buttons/staffapply.js @@ -28,13 +28,13 @@ module.exports = { await interaction.deferReply({ ephemeral: true }); - // if (!userRoles.has(guildRole)) { - // await interaction.editReply({content: "You must be a member of the guild to apply for staff.", ephemeral: true}); - // } -// - // if (userRoles.has(guildStaff)) { - // await interaction.editReply({content: "You are already a staff member.", ephemeral: true}); - // } + if (!userRoles.has(guildRole)) { + await interaction.editReply({content: "You must be a member of the guild to apply for staff.", ephemeral: true}); + } + + if (userRoles.has(guildStaff)) { + await interaction.editReply({content: "You are already a staff member.", ephemeral: true}); + } const application = await staffapp.findOne({ userID: user.id });