Browse Source

Revert "Update settings.ts"

This reverts commit 446f253844.
pull/43/head
Eric Yang 3 years ago
parent
commit
79c2606fff
  1. 5
      src/commands/settings.ts

5
src/commands/settings.ts

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

Loading…
Cancel
Save