From 4a6f02ba814210e3c27870cea6e85c3455e6b14f Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 20 Mar 2023 19:50:52 +0100 Subject: [PATCH] . --- events/buttons/guilapply.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/events/buttons/guilapply.js b/events/buttons/guilapply.js index dd9b3a8..a4326e4 100644 --- a/events/buttons/guilapply.js +++ b/events/buttons/guilapply.js @@ -30,10 +30,10 @@ module.exports = { await interaction.deferReply({ ephemeral: true }); - // if (userRoles.includes(guildRole)) { - // await interaction.editReply({ content: "You are already a member of the guild.", ephemeral: true }); - // return - // } + if (userRoles.includes(guildRole)) { + await interaction.editReply({ content: "You are already a member of the guild.", ephemeral: true }); + return + } const application = await guildapp.findOne({ userID: user.id });