From 79c2606fffbd4dc3ef9e0a0a613bbe39980ff294 Mon Sep 17 00:00:00 2001 From: Eric Yang <64386991+xlq902@users.noreply.github.com> Date: Mon, 11 Apr 2022 23:51:51 -0400 Subject: [PATCH] Revert "Update settings.ts" This reverts commit 446f25384434414e569acbaed26c8a7f6e3cf7f2. --- src/commands/settings.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/settings.ts b/src/commands/settings.ts index 6da52fb..775855c 100644 --- a/src/commands/settings.ts +++ b/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; } });