export interface APIBaseInteraction<Type extends InteractionType, Data>See also: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object
Type Parameters
Type extends InteractionType
Data
externalapp_permissions : Permissions
Bitwise set of permissions the app or bot has within the channel the interaction was sent from
externalapplication_id : Snowflake
ID of the application this interaction is for
externalattachment_size_limit : number
Attachment size limit in bytes
externalauthorizing_integration_owners : APIAuthorizingIntegrationOwnersMap
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
deprecatedoptionalexternalchannel_id? : Snowflake
Use channel instead
The id of the channel it was sent from
optionalexternalchannel? : Partial<APIChannel> & Pick<APIChannel, 'id' | 'type'>
The channel it was sent from
optionalexternalcontext? : InteractionContextType
Context where the interaction was triggered from
optionalexternaldata? : Data
The command data payload
externalentitlements : APIEntitlement[]
For monetized apps, any entitlements for the invoking user, representing access to premium SKUs
optionalexternalguild_id? : Snowflake
Guild that the interaction was sent from
optionalexternalguild_locale? : Locale
The guild's preferred locale, if invoked in a guild
optionalexternalguild? : APIPartialInteractionGuild
Guild that the interaction was sent from
externalid : Snowflake
ID of the interaction
externallocale : Locale
The selected language of the invoking user
optionalexternalmember? : APIInteractionGuildMember
Guild member data for the invoking user, including permissions**This is only sent when an interaction is invoked in a guild**
optionalexternalmessage? : APIMessage
For components, the message they were attached to
externaltoken : string
A continuation token for responding to the interaction
externaltype : Type
The type of interaction
optionalexternaluser? : APIUser
User object for the invoking user, if invoked in a DM