D++ (DPP)
C++ Discord API Bot Library
|
The application role connection that an application has attached to a user. More...
#include <role.h>
Public Member Functions | |
application_role_connection () | |
Constructor. More... | |
virtual | ~application_role_connection ()=default |
application_role_connection & | 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 | platform_name |
Optional: The vanity name of the platform a bot has connected (max 50 characters). More... | |
std::string | platform_username |
Optional: The username on the platform a bot has connected (max 100 characters). More... | |
std::variant< std::monostate, application_role_connection_metadata > | metadata |
Optional: Object mapping application role connection metadata keys to their "stringified" value (max 100 characters) for the user on the platform a bot has connected. More... | |
Protected Member Functions | |
application_role_connection & | fill_from_json_impl (nlohmann::json *j) |
Fill this record from json. More... | |
virtual json | to_json_impl (bool with_id=false) const |
Convert to JSON. More... | |
Friends | |
struct | json_interface< application_role_connection > |
The application role connection that an application has attached to a user.
dpp::application_role_connection::application_role_connection | ( | ) |
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::variant<std::monostate, application_role_connection_metadata> dpp::application_role_connection::metadata |
Optional: Object mapping application role connection metadata keys to their "stringified" value (max 100 characters) for the user on the platform a bot has connected.
std::string dpp::application_role_connection::platform_name |
Optional: The vanity name of the platform a bot has connected (max 50 characters).
std::string dpp::application_role_connection::platform_username |
Optional: The username on the platform a bot has connected (max 100 characters).