diff --git a/features/interactionCreate.ts b/features/interactionCreate.ts index 25a51b6..89793b9 100644 --- a/features/interactionCreate.ts +++ b/features/interactionCreate.ts @@ -68,6 +68,8 @@ export default (client: Client): void => { // Assign the new role to the user await addNewRole(member, staffModel, interaction.values[0]); } else if (interaction.customId.startsWith("csClassPoll+")) { + // Assign the new role to the user + await addNewRole(member, classModel, interaction.values[0]); // Set the embed title const title = "CS Class Poll"; // Create and send the embed object @@ -81,9 +83,6 @@ export default (client: Client): void => { ], ephemeral: true, }); - // Assign the new role to the user - - await addNewRole(member, classModel, interaction.values[0]); } }); };