Adding if statements for applications
This commit is contained in:
@@ -28,13 +28,13 @@ module.exports = {
|
|||||||
|
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ ephemeral: true });
|
||||||
|
|
||||||
// if (!userRoles.has(guildRole)) {
|
if (!userRoles.has(guildRole)) {
|
||||||
// await interaction.editReply({content: "You must be a member of the guild to apply for staff.", ephemeral: true});
|
await interaction.editReply({content: "You must be a member of the guild to apply for staff.", ephemeral: true});
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// if (userRoles.has(guildStaff)) {
|
if (userRoles.has(guildStaff)) {
|
||||||
// await interaction.editReply({content: "You are already a staff member.", ephemeral: true});
|
await interaction.editReply({content: "You are already a staff member.", ephemeral: true});
|
||||||
// }
|
}
|
||||||
|
|
||||||
const application = await staffapp.findOne({ userID: user.id });
|
const application = await staffapp.findOne({ userID: user.id });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user