dpp::prune
dpp::json_interface< prune >
prune.h
struct friend struct json_interface< prune > json_interface< prune > dpp::prune::json_interface< prune > json_interface< prune >
bool bool dpp::prune::compute_prune_count compute_prune_count 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 uint32_t dpp::prune::days days dpp::prune::days = 0

Number of days to include in the prune.

std::vector< snowflake > std::vector<snowflake> dpp::prune::include_roles include_roles dpp::prune::include_roles

Roles to include in the prune (empty to include everyone).

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

Fill this object from json. j

JSON object to fill from

A reference to self

json virtual json dpp::prune::to_json_impl (bool with_prune_count=false) const to_json_impl dpp::prune::to_json_impl bool with_prune_count false

Build JSON from this object. with_prune_count

True if the prune count boolean is to be set in the built JSON

The JSON of the prune object

virtual dpp::prune::~prune
()=default
~prune
dpp::prune::~prune

Destroy this prune object.

std::string std::string dpp::json_interface< prune >::build_json (bool with_id=false) const build_json dpp::json_interface< prune >::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

prune & prune & dpp::json_interface< prune >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< prune >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

json json dpp::prune::to_json (bool with_id=false) const to_json dpp::prune::to_json bool with_id false

Build JSON from this object.

with_id

True if the prune count boolean is to be set in the built JSON

The JSON of the prune object

Defines a request to count prunable users, or start a prune operation.

dpp::json_interface< T >
dpp::json_interface< prune >
< prune >
dpp::prune
T
bool
dpp::json_interface< T >
dpp::json_interface< prune >
< prune >
dpp::prune
days
include_roles
compute_prune_count
dpp::snowflake
value
std::vector< T >
elements
std::vector< dpp::snowflake >
elements
< dpp::snowflake >
uint32_t
uint64_t
- dpp::prune
  build_json
- dpp::prune
  compute_prune_count
- dpp::prune
  days
- dpp::prune
  fill_from_json
- dpp::prune
  fill_from_json_impl
- dpp::prune
  include_roles
- dpp::prune
  json_interface< prune >
- dpp::prune
  to_json
- dpp::prune
  to_json_impl
- dpp::prune
  ~prune