The ban class represents a ban on a guild. More...
#include "ban.h"
Public Member Functions | |
ban () | |
Constructor. More... | |
virtual | ~ban ()=default |
Destructor. More... | |
std::string | build_json (bool with_id=false) const |
Convert object to json string. More... | |
ban & | fill_from_json (nlohmann::json *j) |
Convert object from nlohmann::json. More... | |
auto | to_json (bool with_id=false) const |
Convert object to nlohmann::json. More... | |
Public Attributes | |
std::string | reason |
The ban reason. More... | |
snowflake | user_id |
User ID the ban applies to. More... | |
Protected Member Functions | |
ban & | fill_from_json_impl (nlohmann::json *j) |
Read class values from json object. More... | |
Friends | |
struct | json_interface< ban > |
The ban class represents a ban on a guild.
dpp::ban::ban | ( | ) |
Constructor.
|
virtualdefault |
Destructor.
|
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 |
Read class values from json object.
j | A json object to read from |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
|
friend |
std::string dpp::ban::reason |
The ban reason.
snowflake dpp::ban::user_id |
User ID the ban applies to.