dpp::automod_rule
dpp::managed
dpp::json_interface< automod_rule >
automod.h
struct friend struct json_interface< automod_rule > json_interface< automod_rule > dpp::automod_rule::json_interface< automod_rule > json_interface< automod_rule >
std::vector< automod_action > std::vector<automod_action> dpp::automod_rule::actions actions dpp::automod_rule::actions

the actions which will execute when the rule is triggered

snowflake snowflake dpp::automod_rule::creator_id creator_id dpp::automod_rule::creator_id

The user which first created this rule.

bool bool dpp::automod_rule::enabled enabled dpp::automod_rule::enabled

Whether the rule is enabled.

automod_event_type automod_event_type dpp::automod_rule::event_type event_type dpp::automod_rule::event_type

The rule event type.

std::vector< snowflake > std::vector<snowflake> dpp::automod_rule::exempt_channels exempt_channels dpp::automod_rule::exempt_channels

the channel ids that should not be affected by the rule (Maximum of 50)

std::vector< snowflake > std::vector<snowflake> dpp::automod_rule::exempt_roles exempt_roles dpp::automod_rule::exempt_roles

the role ids that should not be affected by the rule (Maximum of 20)

snowflake snowflake dpp::automod_rule::guild_id guild_id dpp::automod_rule::guild_id

the guild which this rule belongs to

snowflake snowflake dpp::automod_rule::id id dpp::automod_rule::id

the id of this rule

std::string std::string dpp::automod_rule::name name dpp::automod_rule::name

the rule name

automod_metadata automod_metadata dpp::automod_rule::trigger_metadata trigger_metadata dpp::automod_rule::trigger_metadata

The rule trigger metadata.

automod_trigger_type automod_trigger_type dpp::automod_rule::trigger_type trigger_type dpp::automod_rule::trigger_type

The rule trigger type.

automod_rule & automod_rule & dpp::automod_rule::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::automod_rule::fill_from_json_impl nlohmann::json * j

Fill object properties from JSON.

j

JSON to fill from

automod_rule& Reference to self

json virtual json dpp::automod_rule::to_json_impl (bool with_id=false) const to_json_impl dpp::automod_rule::to_json_impl bool with_id false

Build a json string for this object.

json JSON object

dpp::automod_rule::automod_rule
()
automod_rule
dpp::automod_rule::automod_rule

Construct a new automod rule object.

virtual dpp::automod_rule::~automod_rule
()
~automod_rule
dpp::automod_rule::~automod_rule

Destroy the automod rule object.

std::string std::string dpp::json_interface< automod_rule >::build_json (bool with_id=false) const build_json dpp::json_interface< automod_rule >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

automod_rule & automod_rule & dpp::json_interface< automod_rule >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< automod_rule >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

double double dpp::managed::get_creation_time () const noexcept get_creation_time dpp::managed::get_creation_time

Get the creation time of this object according to Discord.

double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

bool bool dpp::managed::operator!= (const managed &other) const noexcept operator!= dpp::managed::operator!= const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are not the same id

false objects are the same id

bool bool dpp::managed::operator== (const managed &other) const noexcept operator== dpp::managed::operator== const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are the same id

false objects are not the same id

auto auto dpp::json_interface< automod_rule >::to_json (bool with_id=false) const to_json dpp::json_interface< automod_rule >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

Represents an automod rule.

dpp::automod_rule
dpp::json_interface< T >
dpp::json_interface< automod_rule >
< automod_rule >
dpp::managed
T
automod_action_type
automod_event_type
automod_preset_type
automod_trigger_type
bool
dpp::automod_action
type
channel_id
custom_message
duration_seconds
dpp::automod_metadata
allow_list
keywords
regex_patterns
presets
mention_total_limit
mention_raid_protection_enabled
dpp::automod_rule
creator_id
guild_id
id
name
event_type
trigger_type
trigger_metadata
actions
enabled
exempt_channels
exempt_roles
dpp::json_interface< T >
dpp::json_interface< automod_action >
< automod_action >
dpp::json_interface< automod_metadata >
< automod_metadata >
dpp::json_interface< automod_rule >
< automod_rule >
dpp::managed
id
dpp::snowflake
value
std::basic_string< Char >
std::string
std::vector< T >
elements
std::vector< automod_preset_type >
elements
< automod_preset_type >
std::vector< dpp::automod_action >
elements
< dpp::automod_action >
std::vector< dpp::snowflake >
elements
< dpp::snowflake >
std::vector< std::string >
elements
< std::string >
uint32_t
uint64_t
uint8_t
- dpp::automod_rule
  actions
- dpp::automod_rule
  automod_rule
- dpp::automod_rule
  build_json
- dpp::automod_rule
  creator_id
- dpp::automod_rule
  enabled
- dpp::automod_rule
  event_type
- dpp::automod_rule
  exempt_channels
- dpp::automod_rule
  exempt_roles
- dpp::automod_rule
  fill_from_json
- dpp::automod_rule
  fill_from_json_impl
- dpp::automod_rule
  get_creation_time
- dpp::automod_rule
  guild_id
- dpp::automod_rule
  id
- dpp::automod_rule
  json_interface< automod_rule >
- dpp::automod_rule
  managed
- dpp::automod_rule
  managed
- dpp::automod_rule
  managed
- dpp::automod_rule
  managed
- dpp::automod_rule
  name
- dpp::automod_rule
  operator!=
- dpp::automod_rule
  operator=
- dpp::automod_rule
  operator=
- dpp::automod_rule
  operator==
- dpp::automod_rule
  to_json
- dpp::automod_rule
  to_json_impl
- dpp::automod_rule
  trigger_metadata
- dpp::automod_rule
  trigger_type
- dpp::automod_rule
  ~automod_rule
- dpp::automod_rule
  ~managed