import { type APIBaseInteraction } from "https://deno.land/x/discord_api_types@0.37.18/payloads/v9/mod.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
optional
app_permissions: PermissionsBitwise 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
optional
guild_locale: LocaleStringThe guild's preferred locale, if invoked in a guild