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 () 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
std::string dpp::ban::build_json | ( | ) | const |
Build json representation of a 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