Nostrum.Struct.ApplicationCommandInteractionData (Nostrum v0.4.6) View Source

Struct for interaction data.

Link to this section Summary

Types

ID of the invoked command

Name of the invoked command

Parameters and values supplied by the user, if applicable

t()

Command interaction data for slash commands.

Link to this section Types

Specs

ID of the invoked command

Specs

name() :: String.t()

Name of the invoked command

Specs

Parameters and values supplied by the user, if applicable

Specs

t() :: %Nostrum.Struct.ApplicationCommandInteractionData{
  id: id(),
  name: name(),
  options: options()
}

Command interaction data for slash commands.

Used as part of Nostrum.Struct.Interaction.t/0.

Official reference: https://discord.com/developers/docs/interactions/slash-commands#interaction-applicationcommandinteractiondata