mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: use CommandOptionWithType instead
This commit is contained in:
parent
f7c9a60519
commit
3c216c2a06
@ -29,6 +29,7 @@ import {
|
|||||||
type LocaleString,
|
type LocaleString,
|
||||||
} from '../../types';
|
} from '../../types';
|
||||||
import type { Groups, RegisteredMiddlewares } from '../decorators';
|
import type { Groups, RegisteredMiddlewares } from '../decorators';
|
||||||
|
import type { CommandOptionWithType } from '../handle';
|
||||||
import type { CommandContext } from './chatcontext';
|
import type { CommandContext } from './chatcontext';
|
||||||
import type {
|
import type {
|
||||||
ExtraProps,
|
ExtraProps,
|
||||||
@ -124,7 +125,7 @@ export class BaseCommand {
|
|||||||
name_localizations?: Partial<Record<LocaleString, string>>;
|
name_localizations?: Partial<Record<LocaleString, string>>;
|
||||||
description_localizations?: Partial<Record<LocaleString, string>>;
|
description_localizations?: Partial<Record<LocaleString, string>>;
|
||||||
|
|
||||||
options?: CommandOption[] | SubCommand[];
|
options?: CommandOptionWithType[] | SubCommand[];
|
||||||
|
|
||||||
ignore?: IgnoreCommand;
|
ignore?: IgnoreCommand;
|
||||||
|
|
||||||
@ -344,7 +345,7 @@ export class Command extends BaseCommand {
|
|||||||
export abstract class SubCommand extends BaseCommand {
|
export abstract class SubCommand extends BaseCommand {
|
||||||
type = ApplicationCommandOptionType.Subcommand;
|
type = ApplicationCommandOptionType.Subcommand;
|
||||||
group?: string;
|
group?: string;
|
||||||
declare options?: CommandOption[];
|
declare options?: CommandOptionWithType[];
|
||||||
|
|
||||||
toJSON() {
|
toJSON() {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user