From 3c216c2a0620765ffd90584191c2b1504f9052e0 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Mon, 6 Jan 2025 01:08:39 -0400 Subject: [PATCH] fix: use CommandOptionWithType instead --- src/commands/applications/chat.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/applications/chat.ts b/src/commands/applications/chat.ts index b260a14..cf0dd4f 100644 --- a/src/commands/applications/chat.ts +++ b/src/commands/applications/chat.ts @@ -29,6 +29,7 @@ import { type LocaleString, } from '../../types'; import type { Groups, RegisteredMiddlewares } from '../decorators'; +import type { CommandOptionWithType } from '../handle'; import type { CommandContext } from './chatcontext'; import type { ExtraProps, @@ -124,7 +125,7 @@ export class BaseCommand { name_localizations?: Partial>; description_localizations?: Partial>; - options?: CommandOption[] | SubCommand[]; + options?: CommandOptionWithType[] | SubCommand[]; ignore?: IgnoreCommand; @@ -344,7 +345,7 @@ export class Command extends BaseCommand { export abstract class SubCommand extends BaseCommand { type = ApplicationCommandOptionType.Subcommand; group?: string; - declare options?: CommandOption[]; + declare options?: CommandOptionWithType[]; toJSON() { return {