dpp::application_role_connection
dpp::json_interface< application_role_connection >
role.h
struct friend struct json_interface< application_role_connection > json_interface< application_role_connection > dpp::application_role_connection::json_interface< application_role_connection > json_interface< application_role_connection >
std::variant< std::monostate, application_role_connection_metadata > std::variant<std::monostate, application_role_connection_metadata> dpp::application_role_connection::metadata 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 std::string dpp::application_role_connection::platform_name platform_name dpp::application_role_connection::platform_name

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

std::string std::string dpp::application_role_connection::platform_username platform_username dpp::application_role_connection::platform_username

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

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

Fill this record from json.

j

The json to fill this record from

Reference to self

json virtual json dpp::application_role_connection::to_json_impl (bool with_id=false) const to_json_impl dpp::application_role_connection::to_json_impl bool with_id false

Convert to JSON.

with_id

include ID in output

json JSON output

dpp::application_role_connection::application_role_connection
()
application_role_connection
dpp::application_role_connection::application_role_connection

Constructor.

virtual dpp::application_role_connection::~application_role_connection
()=default
~application_role_connection
dpp::application_role_connection::~application_role_connection
std::string std::string dpp::json_interface< application_role_connection >::build_json (bool with_id=false) const build_json dpp::json_interface< application_role_connection >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

application_role_connection & application_role_connection & dpp::json_interface< application_role_connection >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< application_role_connection >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< application_role_connection >::to_json (bool with_id=false) const to_json dpp::json_interface< application_role_connection >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

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

dpp::application_role_connection
dpp::json_interface< T >
dpp::json_interface< application_role_connection >
< application_role_connection >
dpp::application_role_connection
platform_name
platform_username
metadata
dpp::json_interface< T >
dpp::json_interface< application_role_connection >
< application_role_connection >
std::basic_string< Char >
std::string
variant< std::monostate, dpp::application_role_connection_metadata >
- dpp::application_role_connection
  application_role_connection
- dpp::application_role_connection
  build_json
- dpp::application_role_connection
  fill_from_json
- dpp::application_role_connection
  fill_from_json_impl
- dpp::application_role_connection
  json_interface< application_role_connection >
- dpp::application_role_connection
  metadata
- dpp::application_role_connection
  platform_name
- dpp::application_role_connection
  platform_username
- dpp::application_role_connection
  to_json
- dpp::application_role_connection
  to_json_impl
- dpp::application_role_connection
  ~application_role_connection