D++ (DPP)
C++ Discord API Bot Library
|
Represents an onboarding prompt option. More...
#include <guild.h>
Public Member Functions | |
onboarding_prompt_option () | |
Construct a new onboarding prompt option object. More... | |
virtual | ~onboarding_prompt_option ()=default |
Destroy the onboarding prompt option object. More... | |
onboarding_prompt_option & | 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... | |
onboarding_prompt_option & | set_emoji (const dpp::emoji &_emoji) |
Set the emoji of this onboarding prompt option object. More... | |
onboarding_prompt_option & | set_title (const std::string &_title) |
Set the title of this onboarding prompt option object. More... | |
onboarding_prompt_option & | set_description (const std::string &_description) |
Set the description of this onboarding prompt option object. More... | |
double | get_creation_time () const |
Get the creation time of this object according to Discord. More... | |
bool | operator== (const managed &other) const noexcept |
Comparison operator for comparing two managed objects by id. More... | |
bool | operator!= (const managed &other) const noexcept |
Comparison operator for comparing two managed objects by id. More... | |
Public Attributes | |
std::vector< snowflake > | channel_ids |
IDs for channels a member is added to when the option is selected. More... | |
std::vector< snowflake > | role_ids |
IDs for roles assigned to a member when the option is selected. More... | |
dpp::emoji | emoji |
Emoji of the option. More... | |
std::string | title |
Title of the option. More... | |
std::string | description |
Description of the option. More... | |
snowflake | id |
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata. More... | |
Represents an onboarding prompt option.
dpp::onboarding_prompt_option::onboarding_prompt_option | ( | ) |
Construct a new onboarding prompt option object.
|
virtualdefault |
Destroy the onboarding prompt option object.
|
virtual |
Build the json for this object.
with_id | include the id in the JSON |
Reimplemented from dpp::json_interface< onboarding_prompt_option >.
onboarding_prompt_option & dpp::onboarding_prompt_option::fill_from_json | ( | nlohmann::json * | j | ) |
Read class values from json object.
j | A json object to read from |
|
inherited |
Get the creation time of this object according to Discord.
|
noexceptinherited |
Comparison operator for comparing two managed objects by id.
other | Other object to compare against |
|
noexceptinherited |
Comparison operator for comparing two managed objects by id.
other | Other object to compare against |
onboarding_prompt_option & dpp::onboarding_prompt_option::set_description | ( | const std::string & | _description | ) |
Set the description of this onboarding prompt option object.
_description | The description to set |
onboarding_prompt_option & dpp::onboarding_prompt_option::set_emoji | ( | const dpp::emoji & | _emoji | ) |
Set the emoji of this onboarding prompt option object.
_emoji | The emoji to set |
onboarding_prompt_option & dpp::onboarding_prompt_option::set_title | ( | const std::string & | _title | ) |
Set the title of this onboarding prompt option object.
_title | The title to set |
std::vector<snowflake> dpp::onboarding_prompt_option::channel_ids |
IDs for channels a member is added to when the option is selected.
std::string dpp::onboarding_prompt_option::description |
Description of the option.
dpp::emoji dpp::onboarding_prompt_option::emoji |
Emoji of the option.
|
inherited |
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.
std::vector<snowflake> dpp::onboarding_prompt_option::role_ids |
IDs for roles assigned to a member when the option is selected.
std::string dpp::onboarding_prompt_option::title |
Title of the option.