nyx Typedoc
    Preparing search index...

    Interface CommandExecutor<Types>

    An object responsible for executing commands, making sure that they satisfy the middleware and catching any errors in the process.

    interface CommandExecutor<Types extends InteractionTypes = InteractionTypes> {
        autocomplete(
            command: ChatExecutableCommand<Nameable, Types>,
            interaction: Types["AutocompleteInteraction"],
            metadata: Metadata,
        ): Awaitable<void>;
        execute(
            command: AnyExecutableCommand<Types>,
            interaction: CommandExecutableInteraction<Types>,
            metadata: Metadata,
        ): Awaitable<boolean>;
        getErrorHandler(): CommandErrorHandler;
        getMiddleware(): MiddlewareList<CommandMiddlewareResolvable<Types>>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index