export interface APIBaseInteraction<Type extends InteractionType, Data>
https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object
Type Parameters
InteractionType Type extends
Data
externalPermissions app_permissions :
Bitwise set of permissions the app or bot has within the channel the interaction was sent from
externalSnowflake application_id :
ID of the application this interaction is for
externalAPIAuthorizingIntegrationOwnersMap authorizing_integration_owners :
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
deprecatedoptionalexternalSnowflake channel_id? :
Use instead
The id of the channel it was sent from
optionalexternalPartial<APIChannel> & Pick<APIChannel, 'id' | 'type'> channel? :
The channel it was sent from
optionalexternalInteractionContextType context? :
Context where the interaction was triggered from
optionalexternalData data? :
The command data payload
externalAPIEntitlement[] entitlements :
For monetized apps, any entitlements for the invoking user, representing access to premium SKUs
optionalexternalSnowflake guild_id? :
Guild that the interaction was sent from
optionalexternalLocale guild_locale? :
The guild's preferred locale, if invoked in a guild
optionalexternalAPIPartialInteractionGuild guild? :
Guild that the interaction was sent from
externalSnowflake id :
ID of the interaction
externalLocale locale :
The selected language of the invoking user
optionalexternalAPIInteractionGuildMember member? :
Guild member data for the invoking user, including permissions**This is only sent when an interaction is invoked in a guild**
optionalexternalAPIMessage message? :
For components, the message they were attached to
externalstring token :
A continuation token for responding to the interaction
externalType type :
The type of interaction
optionalexternalAPIUser user? :
User object for the invoking user, if invoked in a DM