D++ (DPP)
C++ Discord API Bot Library
dpp::application_role_connection Class Reference

The application role connection that an application has attached to a user. More...

#include <role.h>

+ Inheritance diagram for dpp::application_role_connection:
+ Collaboration diagram for dpp::application_role_connection:

Public Member Functions

 application_role_connection ()
 
virtual ~application_role_connection ()=default
 
application_role_connectionfill_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_metadatametadata
 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...
 

Detailed Description

The application role connection that an application has attached to a user.

Constructor & Destructor Documentation

◆ application_role_connection()

dpp::application_role_connection::application_role_connection ( )

Constructor

◆ ~application_role_connection()

virtual dpp::application_role_connection::~application_role_connection ( )
virtualdefault

Member Function Documentation

◆ build_json()

virtual std::string dpp::application_role_connection::build_json ( bool  with_id = false) const
virtual

Convert to JSON string.

Parameters
with_idinclude ID in output
Returns
std::string JSON output

Reimplemented from dpp::json_interface< application_role_connection >.

◆ fill_from_json()

application_role_connection & dpp::application_role_connection::fill_from_json ( nlohmann::json *  j)

Fill this record from json.

Parameters
jThe json to fill this record from
Returns
Reference to self

Member Data Documentation

◆ metadata

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.

◆ platform_name

std::string dpp::application_role_connection::platform_name

Optional: The vanity name of the platform a bot has connected (max 50 characters)

◆ platform_username

std::string dpp::application_role_connection::platform_username

Optional: The username on the platform a bot has connected (max 100 characters)

D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0