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 });