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) |
std::string | build_json (bool with_prune_count) const |
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.
std::string dpp::prune::build_json | ( | bool | with_prune_count | ) | const |
Build JSON from this object.
with_prune_count | True if the prune count boolean is to be set in the built JSON |
prune & dpp::prune::fill_from_json | ( | nlohmann::json * | j | ) |
Fill this object from json.
j | JSON object to fill from |
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)