ol.trixnity.room.message

Helpers for constructing normalized room message payloads.

This namespace provides small builders for the message-spec maps accepted by ol.trixnity.room/send-message.

The helpers here focus on common text-message cases:

  • text builds a normalized text message payload

  • reply-to attaches reply metadata from a normalized event map

Use ol.trixnity.event to inspect the events you are replying to.

text

(text body)
(text body opts)

Builds a text message-spec map understood by ol.trixnity.room/send-message.


reply-to

(reply-to message ev)

Associates reply metadata from normalized event ev onto message.

When ev already carries relation metadata, that relation is copied into the reply target so upstream threading semantics are preserved.