import { APIApplicationCommandAutocompleteInteraction, APIApplicationCommandInteractionDataOption, APIInteractionDataResolved, ApplicationCommandType, InteractionType, LocaleString, Snowflake } from "discord-api-types/v10"; import BaseInteraction from "./BaseInteraction.mjs"; import { AttachmentOption, BooleanOption, ChannelOption, ChatInputInteractionOption, IntegerOption, MentionableOption, NumberOption, RoleOption, StringOption, UserOption } from "./ChatInputInteraction.mjs"; import { InteractionResponseMixin } from "./Response.mjs"; export default class AutocompleteInteraction extends BaseInteraction { type: InteractionType.ApplicationCommandAutocomplete; /** The command's Id */ commandId: Snowflake; /** The command's name */ commandName: string; /** The type of command */ commandType: ApplicationCommandType; /** If the command was a guild specific, that guild's id */ commandGuildId?: Snowflake; /** The selected language of the invoking user */ locale: LocaleString; /** The options that the invoking user has provided for the command */ options: AutocompleteOptions; constructor(interaction: APIApplicationCommandAutocompleteInteraction); } declare const allowedResponses: "respond"[]; export default interface ApplicationCommandInteraction extends InteractionResponseMixin { } export type AutocompleteOptionsType = (StringOption | NumberOption | UserOption | RoleOption | BooleanOption | IntegerOption | ChannelOption | AttachmentOption | MentionableOption) & { focused?: boolean; }; export declare class AutocompleteOptions extends ChatInputInteractionOption { readonly options: Record; constructor(options: APIApplicationCommandInteractionDataOption[] | undefined, resolved: APIInteractionDataResolved | undefined, guildId?: string); isFocused(name: string): boolean | undefined; } export {};