dpp::automod_action
dpp::json_interface< automod_action >
automod.h
struct friend struct json_interface< automod_action > json_interface< automod_action > dpp::automod_action::json_interface< automod_action > json_interface< automod_action >
snowflake snowflake dpp::automod_action::channel_id channel_id dpp::automod_action::channel_id

Channel ID to which user content should be logged, for type dpp::amod_action_send_alert.

std::string std::string dpp::automod_action::custom_message custom_message dpp::automod_action::custom_message

Additional explanation that will be shown to members whenever their message is blocked. For type dpp::amod_action_block_message.

uint32_t uint32_t dpp::automod_action::duration_seconds duration_seconds dpp::automod_action::duration_seconds

Timeout duration in seconds (Maximum of 2419200), for dpp::amod_action_timeout.

automod_action_type automod_action_type dpp::automod_action::type type dpp::automod_action::type

Type of action to take.

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

Fill object properties from JSON.

j

JSON to fill from

automod_action& Reference to self

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

Build a json for this object.

json JSON object

dpp::automod_action::automod_action
()
automod_action
dpp::automod_action::automod_action

Construct a new automod action object.

virtual dpp::automod_action::~automod_action
()
~automod_action
dpp::automod_action::~automod_action

Destroy the automod action object.

std::string std::string dpp::json_interface< automod_action >::build_json (bool with_id=false) const build_json dpp::json_interface< automod_action >::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_action & automod_action & dpp::json_interface< automod_action >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< automod_action >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< automod_action >::to_json (bool with_id=false) const to_json dpp::json_interface< automod_action >::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 action.

dpp::automod_action
dpp::json_interface< T >
dpp::json_interface< automod_action >
< automod_action >
automod_action_type
dpp::automod_action
type
channel_id
custom_message
duration_seconds
dpp::json_interface< T >
dpp::json_interface< automod_action >
< automod_action >
dpp::snowflake
value
std::basic_string< Char >
std::string
uint32_t
uint64_t
- dpp::automod_action
  automod_action
- dpp::automod_action
  build_json
- dpp::automod_action
  channel_id
- dpp::automod_action
  custom_message
- dpp::automod_action
  duration_seconds
- dpp::automod_action
  fill_from_json
- dpp::automod_action
  fill_from_json_impl
- dpp::automod_action
  json_interface< automod_action >
- dpp::automod_action
  to_json
- dpp::automod_action
  to_json_impl
- dpp::automod_action
  type
- dpp::automod_action
  ~automod_action