Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 7c03a31

Browse files
committed
fix
1 parent 120ed9f commit 7c03a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/struct/commands/CommandHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export class NaticoCommandHandler<T extends NaticoClient> extends NaticoHandler<
423423
if (!command) return;
424424
let sub: string | null = null;
425425
if (command?.options) {
426-
if (command?.options[0]?.type == DiscordApplicationCommandOptionTypes.SubCommand) {
426+
if (command?.options[0]?.type == ApplicationCommandOptionTypes.SubCommand) {
427427
sub = interaction?.data?.options?.[0]?.name!;
428428
if (interaction?.data?.options?.[0]?.options)
429429
for (const option of interaction.data?.options[0]?.options) {

0 commit comments

Comments
 (0)