ExStreamClient.Model.Ban (ExStreamClient v0.1.7)

View Source

Schema representing a Ban

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.Ban{
  channel: ExStreamClient.Model.Channel.t() | nil,
  created_at: float(),
  created_by: ExStreamClient.Model.User.t() | nil,
  expires: float() | nil,
  reason: String.t() | nil,
  shadow: boolean(),
  target: 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()