D++ (DPP)
C++ Discord API Bot Library
|
Defines a channel on a server's welcome screen. More...
#include <guild.h>
Public Member Functions | |
welcome_channel () | |
Construct a new welcome channel object. More... | |
virtual | ~welcome_channel ()=default |
Destroy the welcome channel object. More... | |
welcome_channel & | 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_channel & | set_channel_id (const snowflake _channel_id) |
Set the channel ID of this welcome channel object. More... | |
welcome_channel & | set_description (const std::string &_description) |
Set the description of this welcome channel object. More... | |
Public Attributes | |
std::string | description |
The description shown for the channel. More... | |
std::string | emoji_name |
The emoji name if custom, the unicode character if standard, or null if no emoji is set. More... | |
snowflake | channel_id |
The channel's id. More... | |
snowflake | emoji_id |
The emoji id, if the emoji is custom. More... | |
Defines a channel on a server's welcome screen.
dpp::welcome_channel::welcome_channel | ( | ) |
Construct a new welcome channel object.
|
virtualdefault |
Destroy the welcome channel object.
|
virtual |
Build the json for this object.
with_id | include the id in the JSON |
Reimplemented from dpp::json_interface< welcome_channel >.
welcome_channel & dpp::welcome_channel::fill_from_json | ( | nlohmann::json * | j | ) |
Read class values from json object.
j | A json object to read from |
welcome_channel & dpp::welcome_channel::set_channel_id | ( | const snowflake | _channel_id | ) |
Set the channel ID of this welcome channel object.
_channel_id | The channel ID to set |
welcome_channel & dpp::welcome_channel::set_description | ( | const std::string & | _description | ) |
Set the description of this welcome channel object.
_description | The description to set |
snowflake dpp::welcome_channel::channel_id |
The channel's id.
std::string dpp::welcome_channel::description |
The description shown for the channel.
snowflake dpp::welcome_channel::emoji_id |
The emoji id, if the emoji is custom.
std::string dpp::welcome_channel::emoji_name |
The emoji name if custom, the unicode character if standard, or null if no emoji is set.