D++ (DPP)
C++ Discord API Bot Library
|
Represents an automod action. More...
#include <automod.h>
Public Member Functions | |
automod_action () | |
Construct a new automod action object. More... | |
virtual | ~automod_action () |
Destroy the automod action object. More... | |
automod_action & | fill_from_json (nlohmann::json *j) |
Fill object properties from JSON. More... | |
virtual std::string | build_json (bool with_id=false) const |
Build a json string for this object. More... | |
Public Attributes | |
automod_action_type | type |
Type of action to take. More... | |
snowflake | channel_id |
Channel ID, for type dpp::amod_action_send_alert. More... | |
int32_t | duration_seconds |
Timeout duration in seconds (Maximum of 2419200), for dpp::amod_action_timeout. More... | |
Represents an automod action.
dpp::automod_action::automod_action | ( | ) |
Construct a new automod action object.
|
virtual |
Destroy the automod action object.
|
virtual |
Build a json string for this object.
Reimplemented from dpp::json_interface< automod_action >.
automod_action & dpp::automod_action::fill_from_json | ( | nlohmann::json * | j | ) |
Fill object properties from JSON.
j | JSON to fill from |
snowflake dpp::automod_action::channel_id |
Channel ID, for type dpp::amod_action_send_alert.
int32_t dpp::automod_action::duration_seconds |
Timeout duration in seconds (Maximum of 2419200), for dpp::amod_action_timeout.
automod_action_type dpp::automod_action::type |
Type of action to take.