Search documentation of ExStreamClient

# ExStreamClient.Model.MessageResponse (ExStreamClient v0.1.10)

View Source

Schema representing a MessageResponse

# Summary

## Types

t()

## Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()

# Types

# t()

    @type t() :: %ExStreamClient.Model.MessageResponse{
      attachments: [ExStreamClient.Model.Attachment.t()],
      cid: String.t(),
      command: String.t() | nil,
      created_at: float(),
      custom: %{optional(String.t()) => any()},
      deleted_at: float() | nil,
      deleted_reply_count: integer(),
      draft: ExStreamClient.Model.DraftResponse.t() | nil,
      html: String.t(),
      i18n: %{optional(String.t()) => String.t()} | nil,
      id: String.t(),
      image_labels: %{optional(String.t()) => [String.t()]} | nil,
      latest_reactions: [ExStreamClient.Model.ReactionResponse.t()],
      mentioned_users: [ExStreamClient.Model.UserResponse.t()],
      message_text_updated_at: float() | nil,
      mml: String.t() | nil,
      moderation: ExStreamClient.Model.ModerationV2Response.t() | nil,
      own_reactions: [ExStreamClient.Model.ReactionResponse.t()],
      parent_id: String.t() | nil,
      pin_expires: float() | nil,
      pinned: boolean(),
      pinned_at: float() | nil,
      pinned_by: ExStreamClient.Model.UserResponse.t() | nil,
      poll: ExStreamClient.Model.PollResponseData.t() | nil,
      poll_id: String.t() | nil,
      quoted_message: t() | nil,
      quoted_message_id: String.t() | nil,
      reaction_counts: %{optional(String.t()) => integer()},
      reaction_groups:
        %{optional(String.t()) => ExStreamClient.Model.ReactionGroupResponse.t()}
        | nil,
      reaction_scores: %{optional(String.t()) => integer()},
      reply_count: integer(),
      restricted_visibility: [String.t()],
      shadowed: boolean(),
      show_in_channel: boolean() | nil,
      silent: boolean(),
      text: String.t(),
      thread_participants: [ExStreamClient.Model.UserResponse.t()] | nil,
      type: :deleted | :system | :reply | :error | :ephemeral | :regular,
      updated_at: float(),
      user: ExStreamClient.Model.UserResponse.t()
    }

# Functions

# decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

# nested_components()