Skip to main content
Version: 0.37.110

APIBaseInteraction <Type, Data>

Type parameters

Index

Properties

app_permissions

app_permissions: string

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

application_id

application_id: string

ID of the application this interaction is for

authorizing_integration_owners

authorizing_integration_owners: APIAuthorizingIntegrationOwnersMap

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

optionalchannel

channel?: (Partial<APIDMChannel> & Pick<APIChannel, type | id>) & (Partial<APIGroupDMChannel> & Pick<APIChannel, type | id>) & (Partial<APIGuildCategoryChannel> & Pick<APIChannel, type | id>) & (Partial<APIGuildForumChannel> & Pick<APIChannel, type | id>) & (Partial<APIGuildMediaChannel> & Pick<APIChannel, type | id>) & (Partial<APIGuildStageVoiceChannel> & Pick<APIChannel, type | id>) & (Partial<APIGuildVoiceChannel> & Pick<APIChannel, type | id>) & (Partial<APINewsChannel> & Pick<APIChannel, type | id>) & (Partial<APITextChannel> & Pick<APIChannel, type | id>) & (Partial<APIThreadChannel> & Pick<APIChannel, type | id>)

The channel it was sent from

optionalchannel_id

channel_id?: string

The id of the channel it was sent from

@deprecated

Use APIBaseInteraction#channel instead

optionalcontext

Context where the interaction was triggered from

optionaldata

data?: Data

The command data payload

entitlements

entitlements: APIEntitlement[]

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

optionalguild

Guild that the interaction was sent from

optionalguild_id

guild_id?: string

Guild that the interaction was sent from

optionalguild_locale

guild_locale?: Locale

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

id

id: string

ID of the interaction

locale

locale: Locale

The selected language of the invoking user

optionalmember

Guild member data for the invoking user, including permissions

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

optionalmessage

message?: APIMessage

For components, the message they were attached to

token

token: string

A continuation token for responding to the interaction

type

type: Type

The type of interaction

optionaluser

user?: APIUser

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

version

version: 1

Read-only property, always 1