Amarula.Content.Reaction (amarula v0.4.1)

View Source

A received reaction (content of a %Amarula.Msg{type: :reaction}).

  • :key — the reacted-to message as a {jid, msg_id} ref (feed it straight to Amarula.send_reaction/3).
  • :emoji — the reaction emoji; "" means the reaction was removed.

Summary

Types

t()

@type t() :: %Amarula.Content.Reaction{
  emoji: String.t(),
  key: {String.t() | nil, String.t() | nil} | nil
}