From 7c03a318837850d120f1448cdca8eee45e88f97c Mon Sep 17 00:00:00 2001 From: Tricked <72335827+SkyBlockDev@users.noreply.github.com> Date: Sat, 18 Dec 2021 22:30:34 +0100 Subject: [PATCH] fix --- src/struct/commands/CommandHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/struct/commands/CommandHandler.ts b/src/struct/commands/CommandHandler.ts index fa0cae2..4515321 100644 --- a/src/struct/commands/CommandHandler.ts +++ b/src/struct/commands/CommandHandler.ts @@ -423,7 +423,7 @@ export class NaticoCommandHandler extends NaticoHandler< if (!command) return; let sub: string | null = null; if (command?.options) { - if (command?.options[0]?.type == DiscordApplicationCommandOptionTypes.SubCommand) { + if (command?.options[0]?.type == ApplicationCommandOptionTypes.SubCommand) { sub = interaction?.data?.options?.[0]?.name!; if (interaction?.data?.options?.[0]?.options) for (const option of interaction.data?.options[0]?.options) {