From 590c227fe06da68a3e6ab7d62569e11a5946643d Mon Sep 17 00:00:00 2001 From: Ben Williams Date: Sun, 28 Jan 2024 09:40:46 +0000 Subject: [PATCH] fix command names --- .github/CHANGELOG.md | 1 + src/commands/moderation/faq/faq.ts | 2 +- src/commands/utils/simbriefData.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 2d7bfba3..85c51f19 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -2,6 +2,7 @@ Update _ January 2024 +- fix: command names (28/01/2024) - fix: ignore Dyno bot (27/01/2024) - fix: use - instead of _ in command names (27/01/2024) - feat: auto-generation of the command table (24/01/2024) diff --git a/src/commands/moderation/faq/faq.ts b/src/commands/moderation/faq/faq.ts index 9e4c8ab7..cccc208f 100644 --- a/src/commands/moderation/faq/faq.ts +++ b/src/commands/moderation/faq/faq.ts @@ -72,7 +72,7 @@ export default slashCommand(data, async ({ interaction }) => { case 'list': await handleListFaq(interaction); break; - case 'print_all': + case 'print-all': await handlePrintAllFAQ(interaction); break; diff --git a/src/commands/utils/simbriefData.ts b/src/commands/utils/simbriefData.ts index f60442a4..26f81e69 100644 --- a/src/commands/utils/simbriefData.ts +++ b/src/commands/utils/simbriefData.ts @@ -67,7 +67,7 @@ const simbriefEmbed = (flightplan: any) => makeEmbed({ }); export default slashCommand(data, async ({ interaction }) => { - if (interaction.options.getSubcommand() === 'support_request') { + if (interaction.options.getSubcommand() === 'support-request') { return interaction.reply({ embeds: [simbriefdatarequestEmbed] }); }