diff --git a/src/lib/structures/Command.ts b/src/lib/structures/Command.ts index 0f6838e75..44e6b893a 100644 --- a/src/lib/structures/Command.ts +++ b/src/lib/structures/Command.ts @@ -1,5 +1,5 @@ import { AliasPiece, AliasPieceJSON, PieceContext } from '@sapphire/pieces'; -import { Awaitable, isNullish } from '@sapphire/utilities'; +import { Awaitable, isNullish, NonNullObject } from '@sapphire/utilities'; import { Message, PermissionResolvable, Permissions, Snowflake } from 'discord.js'; import * as Lexure from 'lexure'; import { Args } from '../parsers/Args'; @@ -24,7 +24,7 @@ export abstract class Command { export interface CommandJSON extends AliasPieceJSON { description: string; - detailedDescription: string; + detailedDescription: DetailedDescriptionCommand; category: string | null; } @@ -541,3 +541,7 @@ export namespace Command { export type RunContext = CommandContext; export type RunInTypes = CommandOptionsRunType; } + +export type DetailedDescriptionCommand = string | DetailedDescriptionCommandObject; + +export interface DetailedDescriptionCommandObject extends NonNullObject {}