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

Struct for command invocation arguments.

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.

Types

Link to this type

focused()

View Source (since 0.5.0)
@type focused() :: boolean() | nil

Whether this parameter is focused for autocomplete interactions.

@type name() :: String.t()

Parameter name

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

Parameter options for subcommands.

Mutually exclusive with value.

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

Command interaction data struct

@type 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.

You can use one of the Nostrum.Constants.ApplicationCommandOptionType methods.

Parameter value.

The type of this depends on the type/0:

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