ExStreamClient.Model.BanOptions (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a BanOptions

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.BanOptions{
  delete_messages: (:hard | :pruning | :soft) | nil,
  duration: integer() | nil,
  ip_ban: boolean() | nil,
  reason: String.t() | nil,
  shadow_ban: boolean() | 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()