Adding if statements for applications

This commit is contained in:
2023-03-28 22:25:50 +02:00
parent d15639b504
commit eb4f7143b9

View File

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