Deprecated
API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { type APIBaseInteraction } from "https://deno.land/x/discord_api_types@0.37.81/v8.ts";
Type Parameters
Type extends InteractionType
Properties
id: Snowflake
ID of the interaction
application_id: Snowflake
ID of the application this interaction is for
type: Type
The type of interaction
optional
data: DataThe command data payload
optional
guild_id: SnowflakeThe guild it was sent from
optional
channel_id: SnowflakeThe channel it was sent from
optional
member: APIInteractionGuildMemberGuild member data for the invoking user, including permissions
This is only sent when an interaction is invoked in a guild
optional
user: APIUserUser object for the invoking user, if invoked in a DM
optional
message: APIMessageFor components, the message they were attached to
locale: LocaleString
The selected language of the invoking user
optional
guild_locale: LocaleStringThe guild's preferred locale, if invoked in a guild