We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beadc45 commit b2f12bfCopy full SHA for b2f12bf
features/interactionCreate.ts
@@ -68,6 +68,8 @@ export default (client: Client): void => {
68
// Assign the new role to the user
69
await addNewRole(member, staffModel, interaction.values[0]);
70
} else if (interaction.customId.startsWith("csClassPoll+")) {
71
+ // Assign the new role to the user
72
+ await addNewRole(member, classModel, interaction.values[0]);
73
// Set the embed title
74
const title = "CS Class Poll";
75
// Create and send the embed object
@@ -81,9 +83,6 @@ export default (client: Client): void => {
81
83
],
82
84
ephemeral: true,
85
});
- // Assign the new role to the user
-
86
- await addNewRole(member, classModel, interaction.values[0]);
87
}
88
89
};
0 commit comments