|  | D++ (DPP)
    C++ Discord API Bot Library | 
The ban class represents a ban on a guild. More...
#include <ban.h>
 Inheritance diagram for dpp::ban:
 Inheritance diagram for dpp::ban: Collaboration diagram for dpp::ban:
 Collaboration diagram for dpp::ban:| Public Member Functions | |
| ban () | |
| ~ban () | |
| std::string | build_json (bool with_id=false) const | 
| Build json representation of a ban.  More... | |
| ban & | fill_from_json (nlohmann::json *j) | 
| 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