@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
25 lines (24 loc) • 1.14 kB
TypeScript
import { ComponentAPI } from '@ayanaware/bento';
import { LocalizedEmbedBuilder } from '../builders/LocalizedEmbedBuilder';
import { AnyCommandContext } from './CommandContext';
import { CommandManager } from './CommandManager';
import { CommandDefinition } from './interfaces/CommandDefinition';
import { AnySubCommandOption } from './interfaces/CommandOption';
import { CommandEntity } from './interfaces/entity/CommandEntity';
export declare class HelpManager implements CommandEntity {
name: string;
api: ComponentAPI;
parent: typeof CommandManager;
private readonly interface;
private readonly cm;
definition: CommandDefinition;
execute(ctx: AnyCommandContext, { input }: {
input?: string;
}): Promise<unknown>;
private showPrimaryHelp;
private showCategoryHelp;
showCommandHelp(ctx: AnyCommandContext, definition: CommandDefinition, path?: Array<string>): Promise<unknown>;
buildCommandEmbed(ctx: AnyCommandContext, command: CommandDefinition | AnySubCommandOption, crumb: Array<string>): Promise<LocalizedEmbedBuilder>;
private displayCommand;
private displayOption;
}