ExStreamClient.Model.VelocityFilterConfigRule (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a VelocityFilterConfigRule

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.VelocityFilterConfigRule{
  action: :ban | :remove | :shadow | :flag,
  ban_duration: integer() | nil,
  cascading_action: (:ban | :remove | :shadow | :flag) | nil,
  cascading_threshold: integer() | nil,
  check_message_context: boolean() | nil,
  fast_spam_threshold: integer() | nil,
  fast_spam_ttl: integer() | nil,
  ip_ban: boolean() | nil,
  probation_period: integer() | nil,
  shadow_ban: boolean() | nil,
  slow_spam_ban_duration: integer() | nil,
  slow_spam_threshold: integer() | nil,
  slow_spam_ttl: integer() | nil,
  url_only: 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()