Type alias AutoCompleteGetValueFunction<T>

AutoCompleteGetValueFunction<T>: ((rawValue, client, interaction) => T | null | Promise<T | null>)

Type Parameters

  • T

Type declaration

    • (rawValue, client, interaction): T | null | Promise<T | null>
    • Parameters

      • rawValue: string
      • client: Client<true>
      • interaction: ChatInputCommandInteraction | AutocompleteInteraction

      Returns T | null | Promise<T | null>