D++ (DPP)
C++ Discord API Bot Library
|
Application Role Connection Metadata. Represents a role connection metadata for an dpp::application. More...
Public Member Functions | |
application_role_connection_metadata () | |
Constructor. More... | |
virtual | ~application_role_connection_metadata ()=default |
application_role_connection_metadata & | 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 | |
application_role_connection_metadata_type | type |
Type of metadata value. More... | |
std::string | key |
Dictionary key for the metadata field (must be a-z , 0-9 , or _ characters; 1-50 characters). More... | |
std::string | name |
Name of the metadata field (1-100 characters). More... | |
std::map< std::string, std::string > | name_localizations |
Translations of the name. More... | |
std::string | description |
Description of the metadata field (1-200 characters). More... | |
std::map< std::string, std::string > | description_localizations |
Translations of the description. More... | |
Protected Member Functions | |
application_role_connection_metadata & | fill_from_json_impl (nlohmann::json *j) |
virtual json | to_json_impl (bool with_id=false) const |
Convert to JSON. More... | |
Friends | |
struct | json_interface< application_role_connection_metadata > |
Application Role Connection Metadata. Represents a role connection metadata for an dpp::application.
dpp::application_role_connection_metadata::application_role_connection_metadata | ( | ) |
Constructor.
|
virtualdefault |
|
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 |
Fill this record from json.
j | The json to fill this record from |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
|
protectedvirtual |
Convert to JSON.
with_id | include ID in output |
|
friend |
std::string dpp::application_role_connection_metadata::description |
Description of the metadata field (1-200 characters).
std::map<std::string, std::string> dpp::application_role_connection_metadata::description_localizations |
Translations of the description.
std::string dpp::application_role_connection_metadata::key |
Dictionary key for the metadata field (must be a-z
, 0-9
, or _
characters; 1-50 characters).
std::string dpp::application_role_connection_metadata::name |
Name of the metadata field (1-100 characters).
std::map<std::string, std::string> dpp::application_role_connection_metadata::name_localizations |
Translations of the name.
application_role_connection_metadata_type dpp::application_role_connection_metadata::type |
Type of metadata value.