D++ (DPP)
C++ Discord API Bot Library
|
The ban class represents a ban on a guild. More...
#include <ban.h>
Public Member Functions | |
ban () | |
~ban () | |
ban & | fill_from_json (nlohmann::json *j) |
std::string | build_json (bool with_id=false) const |
Build json representation of a ban. More... | |
Public Attributes | |
std::string | reason |
snowflake | user_id |
The ban class represents a ban on a guild.
dpp::ban::ban | ( | ) |
Constructor
dpp::ban::~ban | ( | ) |
Destructor
|
virtual |
Build json representation of a ban.
with_id | Include ID in json |
Reimplemented from dpp::json_interface< ban >.
ban & dpp::ban::fill_from_json | ( | nlohmann::json * | j | ) |
Read class values from json object
j | A json object to read from |
std::string dpp::ban::reason |
The ban reason
snowflake dpp::ban::user_id |
User ID the ban applies to