This commit is contained in:
2023-03-20 19:50:52 +01:00
parent acb6721dc3
commit 4a6f02ba81

View File

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