ExStreamClient.Model.BanActionRequestPayload (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a BanActionRequestPayload

Summary

Functions

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

Types

t()

@type t() :: %ExStreamClient.Model.BanActionRequestPayload{
  ban_from_future_channels: boolean() | nil,
  channel_ban_only: boolean() | nil,
  channel_cid: String.t() | nil,
  delete_messages: (:hard | :pruning | :soft) | nil,
  ip_ban: boolean() | nil,
  reason: String.t() | nil,
  shadow: boolean() | nil,
  target_user_id: String.t() | nil,
  timeout: integer() | nil
}

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()