ArchAstro. Types. Message
(archastro v0.2.0)
Copy Markdown
A chat message posted in a thread, including its content, author, attachments, reactions, and optional reply metadata.
Summary
Types
@type t() :: %ArchAstro.Types.Message{ acl: ArchAstro.Types.Acl.t() | ArchAstro.Unset.t(), actors: [ArchAstro.Types.Actor.t()] | ArchAstro.Unset.t(), agent: String.t() | ArchAstro.Unset.t(), agent_mode: String.t() | ArchAstro.Unset.t(), attachments: [ArchAstro.Types.Attachment.t()] | ArchAstro.Unset.t(), branched_thread: String.t() | ArchAstro.Unset.t(), content: String.t() | ArchAstro.Unset.t(), created_at: DateTime.t() | ArchAstro.Unset.t(), has_replies: boolean() | ArchAstro.Unset.t(), id: String.t(), idempotency_key: String.t() | ArchAstro.Unset.t(), is_deleted: boolean() | ArchAstro.Unset.t(), legacy_agent: String.t() | ArchAstro.Unset.t(), metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), org: String.t() | ArchAstro.Unset.t(), reactions: [ArchAstro.Types.MessageReaction.t()] | ArchAstro.Unset.t(), rendering_mode: String.t() | ArchAstro.Unset.t(), replies: [%{optional(String.t()) => ArchAstro.JSON.t()}] | ArchAstro.Unset.t(), replies_after_cursor: String.t() | ArchAstro.Unset.t(), replies_before_cursor: String.t() | ArchAstro.Unset.t(), reply_count: integer() | ArchAstro.Unset.t(), reply_to: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), root_message_id: String.t() | nil | ArchAstro.Unset.t(), sandbox: String.t() | ArchAstro.Unset.t(), team: String.t() | ArchAstro.Unset.t(), thread: String.t() | ArchAstro.Unset.t(), type: String.t() | ArchAstro.Unset.t(), user: String.t() | ArchAstro.Unset.t(), visibility: String.t() | ArchAstro.Unset.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()