Interface GuildAutocompleteInteraction

interface GuildAutocompleteInteraction {
    acknowledged: boolean;
    appPermissions: Permission;
    application?: ClientApplication;
    applicationID: string;
    channel: AnyTextableGuildChannel;
    channelID: string;
    client: Client<ClientEvents>;
    createdAt: Date;
    data: AutocompleteInteractionData;
    entitlements: (Entitlement | TestEntitlement)[];
    guild: Guild;
    guildID: string;
    guildLocale: string;
    guildPartial: InteractionGuild;
    id: string;
    locale: string;
    member: Member;
    memberPermissions: Permission;
    token: string;
    type: APPLICATION_COMMAND_AUTOCOMPLETE;
    user: User;
    version: 1;
    inCachedGuildChannel(): this is AutocompleteInteraction<AnyTextableGuildChannel>;
    inPrivateChannel(): this is AutocompleteInteraction<PrivateChannel | Uncached>;
    isAutocompleteInteraction(): this is AutocompleteInteraction<Uncached | AnyInteractionChannel>;
    isCommandInteraction(): this is CommandInteraction<Uncached | AnyInteractionChannel, ApplicationCommandTypes>;
    isComponentInteraction(): this is ComponentInteraction<BUTTON | SelectMenuTypes, Uncached | AnyInteractionChannel>;
    isModelSubmitInteraction(): this is ModalSubmitInteraction<Uncached | AnyInteractionChannel>;
    isPingInteraction(): this is PingInteraction;
    result(choices): Promise<void>;
    toJSON(): JSONAutocompleteInteraction;
    toString(): string;
}

Hierarchy (view full)

Properties

acknowledged: boolean

If this interaction has been acknowledged.

appPermissions: Permission
application?: ClientApplication

The application this interaction is for.

applicationID: string

The ID of the application this interaction is for.

channelID: string

The ID of the channel this interaction was sent from.

createdAt: Date

The data associated with the interaction.

entitlements: (Entitlement | TestEntitlement)[]

The entitlements for the user that created this interaction, and the guild it was created in.

guild: Guild
guildID: string
guildLocale: string
guildPartial: InteractionGuild
id: string
locale: string

The locale of the invoking user.

member: Member
memberPermissions: Permission
token: string

The token of this interaction.

user: User

The user that invoked this interaction.

version: 1

Read-only property, always 1

Methods