Teleforge API Reference - v0.1.0
    Preparing search index...

    Interface BotCommandDefinition

    interface BotCommandDefinition {
        command: string;
        description?: string;
        handler:
            | CommandHandler
            | (
                (
                    ctx: CommandContext,
                ) =>
                    | void
                    | GeneratedCommandResponse
                    | Promise<void | GeneratedCommandResponse>
            );
    }
    Index

    Properties

    command: string
    description?: string
    handler:
        | CommandHandler
        | (
            (
                ctx: CommandContext,
            ) =>
                | void
                | GeneratedCommandResponse
                | Promise<void | GeneratedCommandResponse>
        )