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
app_permissions : Permissions
Bitwise set of permissions the app or bot has within the channel the interaction was sent from
application_id : Snowflake
ID of the application this interaction is for
attachment_size_limit : number
Attachment size limit in bytes
authorizing_integration_owners : APIAuthorizingIntegrationOwnersMap
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
deprecatedoptionalchannel_id? : Snowflake
Use channel instead
The id of the channel it was sent from
optionalchannel? : Partial<APIChannel> & Pick<APIChannel, 'id' | 'type'>
The channel it was sent from
optionalcontext? : InteractionContextType
Context where the interaction was triggered from
optionaldata? : Data
The command data payload
entitlements : APIEntitlement[]
For monetized apps, any entitlements for the invoking user, representing access to premium SKUs
optionalguild_id? : Snowflake
Guild that the interaction was sent from
optionalguild_locale? : Locale
The guild's preferred locale, if invoked in a guild
optionalguild? : APIPartialInteractionGuild
Guild that the interaction was sent from
id : Snowflake
ID of the interaction
locale : Locale
The selected language of the invoking user
optionalmember? : APIInteractionGuildMember
Guild member data for the invoking user, including permissions**This is only sent when an interaction is invoked in a guild**
optionalmessage? : 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
optionaluser? : APIUser
User object for the invoking user, if invoked in a DM