Interface APIBaseInteraction<Type, Data>

Type Parameters

Hierarchy

  • APIBaseInteraction

Properties

app_permissions: string

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

application_id: string

ID of the application this interaction is for

authorizing_integration_owners: APIAuthorizingIntegrationOwnersMap

Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.

channel?: Object

The channel it was sent from

channel_id?: string

The id of the channel it was sent from

Deprecated

Use {@apilink APIBaseInteraction#channel} instead

Context where the interaction was triggered from

data?: Data

The command data payload

entitlements: APIEntitlement[]

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

guild_id?: string

The guild it was sent from

guild_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"

The guild's preferred locale, if invoked in a guild

id: string

ID of the interaction

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"

The selected language of the invoking user

Guild member data for the invoking user, including permissions

This is only sent when an interaction is invoked in a guild

message?: APIMessage

For components, the message they were attached to

token: string

A continuation token for responding to the interaction

type: Type

The type of interaction

user?: APIUser

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

version: 1

Read-only property, always 1

Generated using TypeDoc