Skip to content

APIApplicationCommandInteraction

Package: @erinjs/types

Minimal application command interaction (slash command) payload from the gateway.

Properties

NameTypeReadonlyOptionalDescription
application_idstringNoNo
channel_idstringNoYes
data{ id?: string; name: string; type?: number; options?: Array<{ name: string; type: number; value?: APIApplicationCommandOptionValue; }>; }NoYes
guild_idstringNoYes
idstringNoNo
memberAPIGuildMember & { guild_id?: Snowflake; }NoYesGuild member (when interaction is in a guild). Includes user.
tokenstringNoNo
typenumberNoNo
userAPIUserPartialNoYesUser who ran the command (DM context or fallback).

Released under the Apache-2.0 License.