D++ (DPP)
C++ Discord API Bot Library
|
Defines a request to count prunable users, or start a prune operation. More...
#include <prune.h>
Public Member Functions | |
prune & | fill_from_json (nlohmann::json *j) |
virtual std::string | build_json (bool with_prune_count=false) const |
prune & | parse_from_json (nlohmann::json *j) |
Convert object from nlohmann::json. More... | |
Public Attributes | |
uint32_t | days = 0 |
std::vector< snowflake > | include_roles |
bool | compute_prune_count |
Defines a request to count prunable users, or start a prune operation.
|
virtual |
Build JSON from this object.
with_prune_count | True if the prune count boolean is to be set in the built JSON |
Reimplemented from dpp::json_interface< prune >.
prune & dpp::prune::fill_from_json | ( | nlohmann::json * | j | ) |
Fill this object from json.
j | JSON object to fill from |
|
inlineinherited |
Convert object from nlohmann::json.
j | nlohmann::json object |
bool dpp::prune::compute_prune_count |
True if the count of pruneable users should be returned (discord recommend not using this on big guilds)
uint32_t dpp::prune::days = 0 |
Number of days to include in the prune
std::vector<snowflake> dpp::prune::include_roles |
Roles to include in the prune (empty to include everyone)