Class Autocomplete

Hierarchy

  • Autocomplete

Constructors

Properties

callback: ((interaction: AutocompleteInteraction<CacheType>) => void)

Type declaration

    • (interaction: AutocompleteInteraction<CacheType>): void
    • The handler of the autocompelete option.

      Parameters

      • interaction: AutocompleteInteraction<CacheType>

      Returns void

name: string

The name of the autocomplete option.

optionNames: string[]

The name of the target command.

rawRequires: string[]

The requirement names before load.

requires: (undefined | Requirement)[] = []

The requirements for the autocomplete handler.

Methods

  • Set the callback to call when the option is focused.

    Parameters

    • handler: ((interaction: AutocompleteInteraction<CacheType>) => void)

      The callback to call when the option is focused.

        • (interaction: AutocompleteInteraction<CacheType>): void
        • Parameters

          • interaction: AutocompleteInteraction<CacheType>

          Returns void

    Returns void

Generated using TypeDoc