Update isCommand.ts

This commit is contained in:
Axel Olausson Holtenäs 2022-04-26 12:39:25 +02:00 committed by GitHub
parent 13891d9f80
commit c486ea6e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;