|
@ -38,16 +38,17 @@ export async function execute(interaction : CommandInteraction) { |
|
|
]), |
|
|
]), |
|
|
); |
|
|
); |
|
|
await interaction.followUp({ embeds: [settingsEmbed], components: [menu] }); |
|
|
await interaction.followUp({ embeds: [settingsEmbed], components: [menu] }); |
|
|
|
|
|
await interaction.deferReply; |
|
|
const client = interaction.client; |
|
|
const client = interaction.client; |
|
|
client.on('interactionCreate', async interaction => { |
|
|
client.on('interactionCreate', async interaction => { |
|
|
if (!interaction.isSelectMenu()) return; |
|
|
if (!interaction.isSelectMenu()) return; |
|
|
var values = interaction.values[1]; |
|
|
var values = interaction.values[1]; |
|
|
switch(values) { |
|
|
switch(values) { |
|
|
case "subjects": |
|
|
case "subjects": |
|
|
await interaction.editReply({ content: 'subjects was selected!', components: [] }); |
|
|
await interaction.followUp({ content: 'subjects was selected!', components: [] }); |
|
|
break; |
|
|
break; |
|
|
case "gradeLevels": |
|
|
case "gradeLevels": |
|
|
await interaction.editReply({ content: 'levels was selected!', components: [] }); |
|
|
await interaction.followUp({ content: 'levels was selected!', components: [] }); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|