nyx Typedoc
    Preparing search index...

    Interface CommandResolver<Types>

    An object responsible for locating command objects given a command compatible interaction.

    interface CommandResolver<Types extends InteractionTypes = InteractionTypes> {
        resolveFromAutocompleteInteraction(
            interaction: Types["AutocompleteInteraction"],
            repository: CommandRepository<Types>,
        ): AnyExecutableCommand<Types> | null;
        resolveFromCommandInteraction(
            interaction: ApplicationCommandInteraction<Types>,
            repository: CommandRepository<Types>,
        ): AnyExecutableCommand<Types> | null;
        resolveFromCustomIdData(
            data: CommandCustomIdData,
            repository: CommandRepository<Types>,
        ): AnyExecutableCommand<Types> | null;
    }

    Type Parameters

    Implemented by

    Index