ArchAstro. Types. MessageReaction
(archastro v0.2.0)
Copy Markdown
A compact reaction record embedded in a message's reactions array, representing a single user's reaction to a message.
Summary
Types
@type t() :: %ArchAstro.Types.MessageReaction{ payload: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), type: String.t(), user: 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()