View Source Nostrum.Struct.ApplicationCommandInteractionDataOption (Nostrum v0.6.1)

Struct for command invocation arguments.

Link to this section Summary

Types

Whether this parameter is focused for autocomplete interactions.

Parameter name

Parameter options for subcommands.

t()

Command interaction data struct

The application command option type.

Parameter value.

Link to this section Types

Link to this type

focused()

View Source (since 0.5.0)

Specs

focused() :: boolean() | nil

Whether this parameter is focused for autocomplete interactions.

Specs

name() :: String.t()

Parameter name

Specs

options() :: [t()] | nil

Parameter options for subcommands.

Mutually exclusive with value.

Specs

t() :: %Nostrum.Struct.ApplicationCommandInteractionDataOption{
  focused: focused(),
  name: name(),
  options: options(),
  type: type(),
  value: value()
}

Command interaction data struct

Specs

type() :: 1..10

The application command option type.

See https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type for more details.

Specs

Parameter value.

The type of this depends on the type/0:

Mutually exclusive with options. If options is not nil, this will be nil.