WardrikChannel.Inbound (wardrik_channel v0.1.0-rc.1)

Copy Markdown

A message someone posted in a room. Adapters pass it to WardrikChannel.received/2.

  • :room - the room it was posted in.
  • :thread - the thread it replies in, or nil if it starts one.
  • :id - unique in its room. A message passed twice is answered once.
  • :sender - a WardrikChannel.Member.
  • :text - the text, without any mention of the bot.
  • :mentioned? - whether it mentioned the bot. false unless set.

Summary

Types

t()

@type t() :: %WardrikChannel.Inbound{
  id: String.t(),
  mentioned?: boolean(),
  room: String.t(),
  sender: WardrikChannel.Member.t(),
  text: String.t(),
  thread: String.t() | nil
}