Update isCommand.ts
This commit is contained in:
parent
13891d9f80
commit
c486ea6e91
1 changed files with 1 additions and 4 deletions
|
@ -18,10 +18,7 @@ export default async (interaction: CommandInteraction) => {
|
||||||
|
|
||||||
let meta;
|
let meta;
|
||||||
|
|
||||||
const subcommand =
|
const subcommand = interaction.options.getSubcommand()
|
||||||
interaction.options.getSubcommand() === "delete"
|
|
||||||
? "delete_"
|
|
||||||
: interaction.options.getSubcommand();
|
|
||||||
|
|
||||||
if (!interaction.options.getSubcommandGroup(false)) {
|
if (!interaction.options.getSubcommandGroup(false)) {
|
||||||
meta = currentCommand.modules[subcommand].meta;
|
meta = currentCommand.modules[subcommand].meta;
|
||||||
|
|
Loading…
Add table
Reference in a new issue