Class Autocomplete

Represents an autocomplete

Constructors

Properties

Constructors

  • Creates a new autocomplete

    Parameters

    • commandName: string

      The name of the command that triggers the autocomplete

    • callback: AutocompleteCallback

      The callback of the autocomplete

    Returns Autocomplete

    Example

    module.exports.default = new Autocomplete('ping', (client, interaction) => {
    // ...
    });

Properties

The callback of the autocomplete

commandName: string

The name of the command that triggers the autocomplete

Generated using TypeDoc