Skip to content

APIApplicationCommandAutocompleteInteraction

Signature

export type APIApplicationCommandAutocompleteInteraction = APIBaseInteraction<InteractionType.ApplicationCommandAutocomplete, APIChatInputApplicationCommandInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.ApplicationCommandAutocomplete, Required<Pick<APIChatInputApplicationCommandInteractionData, 'options'>>>, 'data'>>;

Properties

type: Type;

The type of interaction

data?: Data;

The command data payload

member?: APIInteractionGuildMember;

Guild member data for the invoking user, including permissions **This is only sent when an interaction is invoked in a guild**

user?: APIUser;

User object for the invoking user, if invoked in a DM

token: string;

A continuation token for responding to the interaction

version: 1;

Read-only property, always `1`

app_permissions: Permissions;

Bitwise set of permissions the app or bot has within the channel the interaction was sent from

entitlements: APIEntitlement[];

For monetized apps, any entitlements for the invoking user, representing access to premium SKUs