Lingo.Type.Message (Lingo v0.4.2)

Copy Markdown View Source

A message.

type is an atom such as :default or :reply, or Discord's number for types Lingo doesn't know yet. timestamp and edited_timestamp are DateTimes.

Summary

Types

message_type()

@type message_type() :: atom() | integer()

t()

@type t() :: %Lingo.Type.Message{
  activity: map() | nil,
  application: Lingo.Type.Application.t() | nil,
  application_id: String.t() | nil,
  attachments: [Lingo.Type.Attachment.t()],
  author: Lingo.Type.User.t(),
  call: map() | nil,
  channel_id: String.t(),
  channel_type: Lingo.Type.Channel.channel_type() | integer() | nil,
  components: [map()],
  content: String.t(),
  edited_timestamp: DateTime.t() | nil,
  embeds: [Lingo.Type.Embed.t()],
  flags: integer(),
  guild_id: String.t() | nil,
  id: String.t(),
  interaction: map() | nil,
  interaction_metadata: map() | nil,
  member: Lingo.Type.Member.t() | nil,
  mention_channels: [map()],
  mention_everyone: boolean(),
  mention_members: %{optional(String.t()) => Lingo.Type.Member.t()},
  mention_roles: [String.t()],
  mentions: [Lingo.Type.User.t()],
  message_reference: map() | nil,
  message_snapshots: [map()],
  nonce: String.t() | integer() | nil,
  pinned: boolean(),
  poll: Lingo.Type.Poll.t() | nil,
  position: integer() | nil,
  reactions: [Lingo.Type.Reaction.t()],
  referenced_message: t() | nil,
  resolved: map() | nil,
  role_subscription_data: map() | nil,
  shared_client_theme: map() | nil,
  sticker_items: [map()],
  stickers: [Lingo.Type.Sticker.t()],
  thread: Lingo.Type.Channel.t() | nil,
  timestamp: DateTime.t(),
  tts: boolean(),
  type: message_type(),
  webhook_id: String.t() | nil
}