D++ (DPP)
C++ Discord API Bot Library
|
Defines a server's welcome screen. More...
Public Member Functions | |
welcome_screen ()=default | |
Construct a new welcome screen object. More... | |
virtual | ~welcome_screen ()=default |
Destroy the welcome screen object. More... | |
welcome_screen & | set_description (const std::string &s) |
Set the server description for this welcome screen object shown in the welcome screen. More... | |
welcome_screen & | 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... | |
std::string | build_json (bool with_id=false) const |
Convert object to json string. More... | |
Public Attributes | |
std::string | description |
The server description shown in the welcome screen. More... | |
std::vector< welcome_channel > | welcome_channels |
The channels shown in the welcome screen (max 5) More... | |
Protected Member Functions | |
welcome_screen & | fill_from_json_impl (nlohmann::json *j) |
Read class values from json object. More... | |
json | to_json_impl (bool with_id=false) const |
Build the json for this object. More... | |
Friends | |
struct | json_interface< welcome_screen > |
Defines a server's welcome screen.
|
default |
Construct a new welcome screen object.
|
virtualdefault |
Destroy the welcome screen object.
|
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 |
welcome_screen& dpp::welcome_screen::set_description | ( | const std::string & | s | ) |
Set the server description for this welcome screen object shown in the welcome screen.
s | string The server description |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
Build the json for this object.
with_id | include the id in the JSON |
|
friend |
std::string dpp::welcome_screen::description |
The server description shown in the welcome screen.
std::vector<welcome_channel> dpp::welcome_screen::welcome_channels |
The channels shown in the welcome screen (max 5)