seyfert
    Preparing search index...

    Class AutocompleteInteraction<FromGuild>

    Type Parameters

    • FromGuild extends boolean = boolean

    Hierarchy (View Summary)

    • ObjectToLower<
          Omit<
              APIApplicationCommandAutocompleteInteraction,
              | "user"
              | "member"
              | "type"
              | "data"
              | "message"
              | "channel"
              | "app_permissions",
          >,
      >
    • BaseInteraction<FromGuild, APIApplicationCommandAutocompleteInteraction>
      • AutocompleteInteraction
    Index

    Constructors

    Properties

    applicationId: string
    appPermissions: PermissionsBitField
    attachmentSizeLimit: number
    authorizingIntegrationOwners: { "0"?: string; "1"?: string }
    channel: AllChannels
    client: UsingClient
    context?: InteractionContextType
    data: {
        guildId?: string;
        id: string;
        name: string;
        options: (
            | {
                name: string;
                options?: (
                    | { name: string; type: Attachment; value: string }
                    | { name: string; type: Boolean; value: boolean }
                    | { name: string; type: Channel; value: string }
                    | { focused?: boolean; name: string; type: Integer; value: number }
                    | { name: string; type: Mentionable; value: string }
                    | { focused?: boolean; name: string; type: Number; value: number }
                    | { name: string; type: Role; value: string }
                    | { focused?: boolean; name: string; type: String; value: string }
                    | { name: string; type: User; value: string }
                )[];
                type: Subcommand;
            }
            | { name: string; type: Attachment; value: string }
            | { name: string; type: Boolean; value: boolean }
            | { name: string; type: Channel; value: string }
            | { focused?: boolean; name: string; type: Integer; value: number }
            | { name: string; type: Mentionable; value: string }
            | { focused?: boolean; name: string; type: Number; value: number }
            | { name: string; type: Role; value: string }
            | { focused?: boolean; name: string; type: String; value: string }
            | { name: string; type: User; value: string }
            | {
                name: string;
                options: {
                    name: string;
                    options?: (
                        | { name: string; type: Attachment; value: string }
                        | { name: string; type: Boolean; value: boolean }
                        | { name: string; type: Channel; value: string }
                        | {
                            focused?: (...) | (...) | (...);
                            name: string;
                            type: Integer;
                            value: number;
                        }
                        | { name: string; type: Mentionable; value: string }
                        | {
                            focused?: (...) | (...) | (...);
                            name: string;
                            type: Number;
                            value: number;
                        }
                        | { name: string; type: Role; value: string }
                        | {
                            focused?: (...) | (...) | (...);
                            name: string;
                            type: String;
                            value: string;
                        }
                        | { name: string; type: User; value: string }
                    )[];
                    type: Subcommand;
                }[];
                type: SubcommandGroup;
            }
        )[];
        resolved?: {
            attachments?: Record<string, APIAttachment>;
            channels?: Record<string, APIInteractionDataResolvedChannel>;
            members?: Record<string, APIInteractionDataResolvedGuildMember>;
            roles?: Record<string, APIRole>;
            users?: Record<string, APIUser>;
        };
        type: ChatInput;
    }
    entitlements: Entitlement[]
    guild?: { features: GuildFeature[]; id: string; locale: Locale }
    guildId?: 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"
    id: string
    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"
    member: When<FromGuild, InteractionGuildMember, undefined>
    message?: Message
    replied?:
        | boolean
        | Promise<undefined | boolean | RESTPostAPIInteractionCallbackResult>
    token: string
    type: ApplicationCommandAutocomplete
    user: User
    version: 1

    Accessors

    Methods

    • Parameters

      • choices: undefined | APIApplicationCommandOptionChoice<string | number>[]

      Returns Promise<undefined>

    • Type Parameters

      • T

      Parameters

      • body:
            | Omit<
                RESTPostAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
            | Omit<
                APIInteractionResponseCallbackData,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
            | InteractionMessageUpdateBodyRequest
            | Omit<
                RESTPatchAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds",
            > & ResolverProps
            | Omit<
                RESTPostAPIWebhookWithTokenJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
      • files: undefined | RawFile[]
      • self: UsingClient

      Returns T