Gamend.Chat.Message (gamend_sdk v1.0.1102)

Copy Markdown View Source

Chat message struct from Gamend.

This is a stub module for SDK type definitions. The actual struct is provided by Gamend at runtime.

Fields

  • id - Message ID (integer)
  • content - Message content (string)
  • metadata - Arbitrary message metadata (map)
  • chat_type - Chat type: "lobby", "group", or "friend" (string)
  • chat_ref_id - Reference ID (lobby_id, group_id, or sorted user pair) (integer)
  • sender_id - ID of the sender (integer)
  • inserted_at - Creation timestamp
  • updated_at - Last update timestamp

Summary

Types

t()

@type t() :: %Gamend.Chat.Message{
  chat_ref_id: integer(),
  chat_type: String.t(),
  content: String.t(),
  id: integer(),
  inserted_at: DateTime.t(),
  metadata: map(),
  sender_id: integer(),
  updated_at: DateTime.t()
}