export interface APIBaseInteraction<Type extends InteractionType, Data>
https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object
Type Parameters
InteractionType Type extends
Data
Permissions app_permissions :
Bitwise set of permissions the app or bot has within the channel the interaction was sent from
Snowflake application_id :
ID of the application this interaction is for
APIAuthorizingIntegrationOwnersMap authorizing_integration_owners :
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
deprecatedoptionalSnowflake channel_id? :
Use instead
The id of the channel it was sent from
optionalPartial<APIChannel> & Pick<APIChannel, 'id' | 'type'> channel? :
The channel it was sent from
optionalInteractionContextType context? :
Context where the interaction was triggered from
optionalData data? :
The command data payload
APIEntitlement[] entitlements :
For monetized apps, any entitlements for the invoking user, representing access to premium SKUs
optionalSnowflake guild_id? :
Guild that the interaction was sent from
optionalLocale guild_locale? :
The guild's preferred locale, if invoked in a guild
optionalAPIPartialInteractionGuild guild? :
Guild that the interaction was sent from
Snowflake id :
ID of the interaction
Locale locale :
The selected language of the invoking user
optionalAPIInteractionGuildMember member? :
Guild member data for the invoking user, including permissions**This is only sent when an interaction is invoked in a guild**
optionalAPIMessage message? :
For components, the message they were attached to
string token :
A continuation token for responding to the interaction
Type type :
The type of interaction
optionalAPIUser user? :
User object for the invoking user, if invoked in a DM