APIBaseInteraction
https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object
Signature
export interface APIBaseInteraction<Type extends InteractionType, Data>Properties
19Methods
0No methods.
Properties
id: Snowflake;ID of the interaction
application_id: Snowflake;ID of the application this interaction is for
type: Type;The type of interaction
data?: Data;The command data payload
guild?: APIPartialInteractionGuild;The guild it was sent from
guild_id?: Snowflake;The guild it was sent from
channel: Partial<APIChannel> & Pick<APIChannel, 'id' | 'type'>;The channel it was sent from
member?: APIInteractionGuildMember;Guild member data for the invoking user, including permissions **This is only sent when an interaction is invoked in a guild**
user?: APIUser;User object for the invoking user, if invoked in a DM
token: string;A continuation token for responding to the interaction
version: 1;Read-only property, always `1`
message?: APIMessage;For components, the message they were attached to
app_permissions: Permissions;Bitwise set of permissions the app or bot has within the channel the interaction was sent from
locale: LocaleString;The selected language of the invoking user
guild_locale?: LocaleString;The guild's preferred locale, if invoked in a guild
entitlements: APIEntitlement[];For monetized apps, any entitlements for the invoking user, representing access to premium SKUs
authorizing_integration_owners: APIAuthorizingIntegrationOwnersMap;Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
context?: InteractionContextType;Context where the interaction was triggered from
attachment_size_limit: number;Attachment size limit in bytes