nyx Typedoc
    Preparing search index...

    Interface ChatExecutableCommand<Data, Types>

    A command that can be executed in chat. Either SubCommand or StandaloneCommand.

    interface ChatExecutableCommand<
        Data extends Nameable,
        Types extends InteractionTypes = InteractionTypes,
    > {
        autocomplete(
            interaction: Types["AutocompleteInteraction"],
            metadata: Metadata,
        ): Awaitable<void>;
        buildCustomId(bot: NyxBot, extra?: string): string;
        execute(
            interaction: Types["ChatInputInteraction"],
            metadata: Metadata,
        ): Awaitable<void>;
        getCustomIdData(extra?: string): CommandCustomIdData;
        getData(): Data;
        getFilter(): CommandFilterResolvable<Types> | null;
        getMeta(): Readonly<Metadata> | null;
        handleInteraction(
            interaction: ComponentCommandInteraction<Types>,
            metadata: Metadata,
        ): Awaitable<void>;
        isContextMenu(): this is ContextMenuCommand<Types>;
        isParent(): this is ParentCommand<Types>;
        isStandalone(): this is StandaloneCommand<Types>;
        isSubCommand(): this is SubCommand<Types>;
        isSubCommandGroup(): this is SubCommandGroup<Types>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index