APIBaseInteraction <Type, Data>
Index
Properties
app_permissions
Bitwise set of permissions the app or bot has within the channel the interaction was sent from
application_id
ID of the application this interaction is for
authorizing_integration_owners
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
optionalchannel
The channel it was sent from
optionalchannel_id
The id of the channel it was sent from
optionalcontext
Context where the interaction was triggered from
optionaldata
The command data payload
entitlements
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 that the interaction was sent from
optionalguild_locale
The guild's preferred locale, if invoked in a guild
id
ID of the interaction
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
For components, the message they were attached to
token
A continuation token for responding to the interaction
type
The type of interaction
optionaluser
User object for the invoking user, if invoked in a DM
version
Read-only property, always 1
https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object