interface APIBaseInteraction

external
export interface APIBaseInteraction<Type extends InteractionType, Data>

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object

Type Parameters

Type extends InteractionType

Data

external
app_permissions : Permissions

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

external
application_id : Snowflake

ID of the application this interaction is for

external
authorizing_integration_owners : APIAuthorizingIntegrationOwnersMap

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

deprecatedoptionalexternal
channel_id? : Snowflake

The id of the channel it was sent from

optionalexternal
channel? : Partial<APIChannel> & Pick<APIChannel, 'id' | 'type'>

The channel it was sent from

optionalexternal
context? : InteractionContextType

Context where the interaction was triggered from

optionalexternal
data? : Data

The command data payload

external
entitlements : APIEntitlement[]

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

optionalexternal
guild_id? : Snowflake

Guild that the interaction was sent from

optionalexternal
guild_locale? : Locale

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

optionalexternal
guild? : APIPartialInteractionGuild

Guild that the interaction was sent from

external
id : Snowflake

ID of the interaction

external
locale : Locale

The selected language of the invoking user

optionalexternal
member? : APIInteractionGuildMember

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

optionalexternal
message? : APIMessage

For components, the message they were attached to

external
token : string

A continuation token for responding to the interaction

external
type : Type

The type of interaction

optionalexternal
user? : APIUser

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

external
version : 1

Read-only property, always 1