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 () | |
virtual | ~application_role_connection ()=default |
application_role_connection & | fill_from_json (nlohmann::json *j) |
virtual std::string | build_json (bool with_id=false) const |
Convert 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... | |
The application role connection that an application has attached to a user.
dpp::application_role_connection::application_role_connection | ( | ) |
Constructor
|
virtualdefault |
|
virtual |
Convert to JSON string.
with_id | include ID in output |
Reimplemented from dpp::json_interface< application_role_connection >.
application_role_connection & dpp::application_role_connection::fill_from_json | ( | nlohmann::json * | j | ) |
Fill this record from json.
j | The json to fill this record from |
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)