AutocompleteInteraction
Signature
export declare class AutocompleteInteraction<FromGuild extends boolean = boolean, ValueType extends string | number = string | number> extends BaseInteraction<FromGuild, APIApplicationCommandAutocompleteInteraction>Properties
28Methods
19Properties
protected __reply?: __InternalReplyFunction | undefined;type: InteractionType.ApplicationCommandAutocomplete;data: ObjectToLower<APIApplicationCommandAutocompleteInteraction['data']>;options: OptionResolverStructure;entitlements: EntitlementStructure[];channel: AllChannels;readonly client: UsingClient;user: UserStructure;member: When<FromGuild, InteractionGuildMemberStructure, undefined>;message?: MessageStructure;replied?: boolean;private _repliedPromise?;deferred?: boolean;appPermissions: PermissionsBitField;private matchReplied;id: string;createdTimestampGetterget createdTimestamp(): number;Create a timestamp for the current object.
createdAtGetterget createdAt(): Date;createdAt gets the creation Date instace of the current object.
guildId?: string | undefined;guild?: { locale: Locale; id: string; features: GuildFeature[]; } | undefined;token: string;version: 1;locale: 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'es-419' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi';applicationId: string;guildLocale?: 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'es-419' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi' | undefined;authorizingIntegrationOwners: { 0?: string | undefined; 1?: string | undefined; };context?: InteractionContextType | undefined;attachmentSizeLimit: number;Methods
constructorConstructorconstructor(client: UsingClient, interaction: APIApplicationCommandAutocompleteInteraction, resolver?: OptionResolverStructure, __reply?: __InternalReplyFunction | undefined);getInput(): string;respond(choices: APICommandAutocompleteInteractionResponseCallbackData<ValueType>['choices']): Promise<undefined>;isAutocomplete(): this is AutocompleteInteraction<FromGuild, ValueType>;reply(..._args: unknown[]): Promise<any>;@intenal
protected hasRepliedOrAwaitPendingReply(): Promise<boolean>;deferReply<WR extends boolean = false>(flags?: MessageFlags, withResponse?: WR): Promise<When<WR, WebhookMessageStructure, undefined>>;isButton(): this is ButtonInteraction;isChannelSelectMenu(): this is ChannelSelectMenuInteraction;isRoleSelectMenu(): this is RoleSelectMenuInteraction;isMentionableSelectMenu(): this is MentionableSelectMenuInteraction;isUserSelectMenu(): this is UserSelectMenuInteraction;isStringSelectMenu(): this is StringSelectMenuInteraction;isChatInput(): this is ChatInputCommandInteraction;isUser(): this is UserCommandInteraction;isMessage(): this is MessageCommandInteraction;isModal(): this is ModalSubmitInteraction;isEntryPoint(): this is EntryPointInteraction;fetchGuild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'> | undefined>;fetchGuild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;