D++ (DPP)
C++ Discord API Bot Library
|
Defines a server's welcome screen. More...
#include <guild.h>
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 & | fill_from_json (nlohmann::json *j) |
Read class values from json object. More... | |
std::string | build_json (bool with_id=false) const |
Build the json for this 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... | |
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... | |
Defines a server's welcome screen.
|
default |
Construct a new welcome screen object.
|
virtualdefault |
Destroy the welcome screen object.
|
virtual |
Build the json for this object.
with_id | include the id in the JSON |
Reimplemented from dpp::json_interface< welcome_screen >.
welcome_screen & dpp::welcome_screen::fill_from_json | ( | nlohmann::json * | j | ) |
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 |
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)