ExStreamClient.Model.UserBannedEvent (ExStreamClient v0.1.7)

View Source

Schema representing a UserBannedEvent

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.UserBannedEvent{
  channel_id: String.t(),
  channel_type: String.t(),
  cid: String.t(),
  created_at: float(),
  created_by: ExStreamClient.Model.User.t(),
  expiration: float() | nil,
  reason: String.t() | nil,
  shadow: boolean(),
  team: String.t() | nil,
  type: String.t(),
  user: ExStreamClient.Model.User.t() | 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()