Skip to content

CIRCE / DOCUMENTATION

AutocompleteContext

What an autocomplete handler receives.

Documentation menu
interface AutocompleteContext {
  readonly interaction: AutocompleteInteraction;
  readonly client: Client;
  readonly guild: Guild | null;
  readonly logger: Logger;
  readonly correlationId: string | undefined;
  readonly t: Translator;
}

Unlike CommandContext, there is no member or user. Use interaction.user and interaction.member. Use t to localize choice names.

Respond with interaction.respond([{ name, value }]), at most 25 choices, within 3 seconds. See Autocomplete.