Remedy.Struct.ApplicationCommandInteractionData (Remedy v0.5.2) View Source
Struct for interaction data.
Link to this section Summary
Types
For components, the type
of the component
For components, the custom_id
of the component
ID of the invoked command
Name of the invoked command
Parameters and values supplied by the user, if applicable
Converted users & roles & channels
Command interaction data for slash commands.
Link to this section Types
Specs
component_type() :: integer() | nil
For components, the type
of the component
Specs
custom_id() :: String.t() | nil
For components, the custom_id
of the component
Specs
id() :: Sunbake.Snowflake.t() | nil
ID of the invoked command
Specs
name() :: String.t() | nil
Name of the invoked command
Specs
options() :: Remedy.Struct.ApplicationCommandInteractionDataOption.t() | nil
Parameters and values supplied by the user, if applicable
Specs
resolved() :: Remedy.Struct.ApplicationCommandInteractionDataResolved.t() | nil
Converted users & roles & channels
Specs
t() :: %Remedy.Struct.ApplicationCommandInteractionData{ component_type: component_type(), custom_id: custom_id(), id: id(), name: name(), options: options(), resolved: resolved() }
Command interaction data for slash commands.
Used as part of Remedy.Struct.Interaction.t/0
.
Official reference: https://discord.com/developers/docs/interactions/slash-commands#interaction-applicationcommandinteractiondata