Lingo.Type.LobbyMessage (Lingo v0.4.2)

Copy Markdown View Source

A message sent in a Social SDK lobby. metadata is the string map the sender attached and moderation_metadata the one set with Lingo.Api.Lobby.update_moderation_metadata/3; lobby_member holds the author's additional_name when they had one. timestamp and edited_timestamp come with updates.

Summary

Types

t()

@type t() :: %Lingo.Type.LobbyMessage{
  application_id: String.t() | nil,
  author: Lingo.Type.User.t() | nil,
  channel_id: String.t(),
  content: String.t(),
  edited_timestamp: DateTime.t() | nil,
  flags: integer(),
  id: String.t(),
  lobby_id: String.t(),
  lobby_member: %{additional_name: String.t()} | nil,
  metadata: %{required(String.t()) => String.t()} | nil,
  moderation_metadata: %{required(String.t()) => String.t()} | nil,
  timestamp: DateTime.t() | nil,
  type: integer()
}