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

Application Role Connection Metadata. Represents a role connection metadata for an dpp::application. More...

#include <role.h>

+ Inheritance diagram for dpp::application_role_connection_metadata:
+ Collaboration diagram for dpp::application_role_connection_metadata:

Public Member Functions

 application_role_connection_metadata ()
 
virtual ~application_role_connection_metadata ()=default
 
application_role_connection_metadatafill_from_json (nlohmann::json *j)
 
virtual std::string build_json (bool with_id=false) const
 Convert 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...
 

Detailed Description

Application Role Connection Metadata. Represents a role connection metadata for an dpp::application.

Constructor & Destructor Documentation

◆ application_role_connection_metadata()

dpp::application_role_connection_metadata::application_role_connection_metadata ( )

Constructor

◆ ~application_role_connection_metadata()

virtual dpp::application_role_connection_metadata::~application_role_connection_metadata ( )
virtualdefault

Member Function Documentation

◆ build_json()

virtual std::string dpp::application_role_connection_metadata::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_metadata >.

◆ fill_from_json()

application_role_connection_metadata & dpp::application_role_connection_metadata::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

◆ description

std::string dpp::application_role_connection_metadata::description

Description of the metadata field (1-200 characters)

◆ description_localizations

std::map<std::string, std::string> dpp::application_role_connection_metadata::description_localizations

Translations of the description.

◆ key

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)

◆ name

std::string dpp::application_role_connection_metadata::name

Name of the metadata field (1-100 characters)

◆ name_localizations

std::map<std::string, std::string> dpp::application_role_connection_metadata::name_localizations

Translations of the name.

◆ type

application_role_connection_metadata_type dpp::application_role_connection_metadata::type

Type of metadata value.

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