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

t()

Command interaction data for slash commands.

Link to this section Types

Link to this type

component_type()

View Source (since 0.5.0)

Specs

component_type() :: integer() | nil

For components, the type of the component

Link to this type

custom_id()

View Source (since 0.5.0)

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

Parameters and values supplied by the user, if applicable

Link to this type

resolved()

View Source (since 0.5.0)

Specs

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