@typed-discord/interactions
    Preparing search index...

    Class Autocomplete

    Respond to an autocomplete interaction with suggested choices

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Creates a new Autocomplete response.

      Parameters

      • choices:
            | ApplicationCommandOptionIntegerChoice[]
            | ApplicationCommandOptionNumberChoice[]
            | ApplicationCommandOptionStringChoice[]

        The autocomplete choices to display.

      • Optionalcallback: () => void

        Optional callback to be called after responding to the interaction.

      Returns Autocomplete

    Properties

    callback?: () => void

    Optional callback to be called after responding to the interaction.

    choices:
        | ApplicationCommandOptionIntegerChoice[]
        | ApplicationCommandOptionNumberChoice[]
        | ApplicationCommandOptionStringChoice[]

    The autocomplete choices to display.

    data:
        | InteractionApplicationCommandAutocompleteCallbackIntegerData
        | InteractionApplicationCommandAutocompleteCallbackNumberData
        | InteractionApplicationCommandAutocompleteCallbackStringData

    The message data to send in the response.

    type: APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = InteractionCallbackTypes.APPLICATION_COMMAND_AUTOCOMPLETE_RESULT

    Type of response