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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tricked-dev committed Dec 18, 2021
1 parent 120ed9f commit 7c03a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/struct/commands/CommandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class NaticoCommandHandler<T extends NaticoClient> 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) {
Expand Down

0 comments on commit 7c03a31

Please sign in to comment.