D++ (DPP)
C++ Discord API Bot Library
|
Defines a request to count prunable users, or start a prune operation. More...
Public Member Functions | |
virtual | ~prune ()=default |
Destroy this prune object. More... | |
json | to_json (bool with_id=false) const |
Build JSON from this object. More... | |
prune & | fill_from_json (nlohmann::json *j) |
Convert object from nlohmann::json. More... | |
std::string | build_json (bool with_id=false) const |
Convert object to json string. More... | |
Public Attributes | |
uint32_t | days = 0 |
Number of days to include in the prune. More... | |
std::vector< snowflake > | include_roles |
Roles to include in the prune (empty to include everyone). More... | |
bool | compute_prune_count |
True if the count of pruneable users should be returned. More... | |
Protected Member Functions | |
prune & | fill_from_json_impl (nlohmann::json *j) |
virtual json | to_json_impl (bool with_prune_count=false) const |
Friends | |
struct | json_interface< prune > |
Defines a request to count prunable users, or start a prune operation.
|
virtualdefault |
Destroy this prune object.
|
inlineinherited |
Convert object to json string.
with_id | Whether to include the ID or not |
|
inlineinherited |
Convert object from nlohmann::json.
j | nlohmann::json object |
|
protected |
Fill this object from json.
j | JSON object to fill from |
json dpp::prune::to_json | ( | bool | with_id = false | ) | const |
Build JSON from this object.
with_prune_count | True if the prune count boolean is to be set in the built JSON |
|
protectedvirtual |
Build JSON from this object.
with_prune_count | True if the prune count boolean is to be set in the built JSON |
|
friend |
bool dpp::prune::compute_prune_count |
True if the count of pruneable users should be returned.
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).