Lingo.Type.CommandOption (Lingo v0.4.2)

Copy Markdown View Source

An application command option, built with Lingo.Bot.Options.

Summary

Types

option_type()

@type option_type() ::
  :sub_command
  | :sub_command_group
  | :string
  | :integer
  | :boolean
  | :user
  | :channel
  | :role
  | :mentionable
  | :number
  | :attachment

t()

@type t() :: %Lingo.Type.CommandOption{
  autocomplete: boolean(),
  channel_types: [Lingo.Type.Channel.channel_type() | integer()],
  choices: [map()],
  description: String.t(),
  description_localizations: map() | nil,
  file_types: [String.t()],
  max_length: integer() | nil,
  max_value: number() | nil,
  min_length: integer() | nil,
  min_value: number() | nil,
  name: String.t(),
  name_localizations: map() | nil,
  options: [t()],
  required: boolean(),
  type: option_type()
}