Lingo.Type.ApplicationCommand (Lingo v0.4.2)

Copy Markdown View Source

An application command, as declared with Lingo.Bot.Commands.command/3 or returned by Discord.

Summary

Types

command_type()

@type command_type() :: :chat_input | :user | :message | :primary_entry_point

t()

@type t() :: %Lingo.Type.ApplicationCommand{
  application_id: String.t() | nil,
  contexts: [integer()] | nil,
  default_member_permissions: String.t() | nil,
  description: String.t(),
  description_localizations: map() | nil,
  dm_permission: boolean(),
  guild_id: String.t() | nil,
  handler: integer() | nil,
  id: String.t() | nil,
  integration_types: [integer()] | nil,
  name: String.t(),
  name_localizations: map() | nil,
  nsfw: boolean(),
  options: [Lingo.Type.CommandOption.t()],
  type: command_type(),
  version: String.t() | nil
}