From c486ea6e9143f2b75df103ff661c0ab63da7afbe Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 26 Apr 2022 12:39:25 +0200 Subject: [PATCH] Update isCommand.ts --- src/events/interactionCreate/components/isCommand.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/events/interactionCreate/components/isCommand.ts b/src/events/interactionCreate/components/isCommand.ts index 2070c49..5646d70 100644 --- a/src/events/interactionCreate/components/isCommand.ts +++ b/src/events/interactionCreate/components/isCommand.ts @@ -18,10 +18,7 @@ export default async (interaction: CommandInteraction) => { let meta; - const subcommand = - interaction.options.getSubcommand() === "delete" - ? "delete_" - : interaction.options.getSubcommand(); + const subcommand = interaction.options.getSubcommand() if (!interaction.options.getSubcommandGroup(false)) { meta = currentCommand.modules[subcommand].meta;