dpp::ban
dpp::json_interface< ban >
ban.h
struct friend struct json_interface< ban > json_interface< ban > dpp::ban::json_interface< ban > json_interface< ban >
std::string std::string dpp::ban::reason reason dpp::ban::reason

The ban reason.

snowflake snowflake dpp::ban::user_id user_id dpp::ban::user_id

User ID the ban applies to.

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

Read class values from json object j

A json object to read from

A reference to self

dpp::ban::ban
()
ban
dpp::ban::ban

Constructor

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

Destructor

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

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

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< ban >::to_json (bool with_id=false) const to_json dpp::json_interface< ban >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

The ban class represents a ban on a guild.

dpp::ban
dpp::json_interface< T >
dpp::json_interface< ban >
< ban >
dpp::ban
reason
user_id
dpp::json_interface< T >
dpp::json_interface< ban >
< ban >
dpp::snowflake
value
std::basic_string< Char >
std::string
uint64_t
- dpp::ban
  ban
- dpp::ban
  build_json
- dpp::ban
  fill_from_json
- dpp::ban
  fill_from_json_impl
- dpp::ban
  json_interface< ban >
- dpp::ban
  reason
- dpp::ban
  to_json
- dpp::ban
  user_id
- dpp::ban
  ~ban