D++ (DPP)
C++ Discord API Bot Library
|
The connection object that the user has attached. More...
Public Member Functions | |
connection () | |
Construct a new connection object. More... | |
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 | id |
ID of the connection account. More... | |
std::string | name |
the username of the connection account. More... | |
std::string | type |
the service of the connection (twitch, youtube, discord, or guild_subscription). More... | |
bool | revoked |
Optional: whether the connection is revoked. More... | |
std::vector< integration > | integrations |
Optional: an array of partial server integrations. More... | |
bool | verified |
Whether the connection is verified. More... | |
bool | friend_sync |
Whether friend sync is enabled for this connection. More... | |
bool | show_activity |
Whether activities related to this connection will be shown in presence updates. More... | |
bool | two_way_link |
Whether this connection has a corresponding third party OAuth2 token. More... | |
bool | visible |
Visibility of this connection. More... | |
Protected Member Functions | |
connection & | fill_from_json_impl (nlohmann::json *j) |
Friends | |
struct | json_interface< connection > |
The connection object that the user has attached.
dpp::connection::connection | ( | ) |
Construct a new connection object.
|
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 |
Read class values from json object
j | A json object to read from |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
|
friend |
bool dpp::connection::friend_sync |
Whether friend sync is enabled for this connection.
std::string dpp::connection::id |
ID of the connection account.
std::vector<integration> dpp::connection::integrations |
Optional: an array of partial server integrations.
std::string dpp::connection::name |
the username of the connection account.
bool dpp::connection::revoked |
Optional: whether the connection is revoked.
bool dpp::connection::show_activity |
Whether activities related to this connection will be shown in presence updates.
bool dpp::connection::two_way_link |
Whether this connection has a corresponding third party OAuth2 token.
std::string dpp::connection::type |
the service of the connection (twitch, youtube, discord, or guild_subscription).
bool dpp::connection::verified |
Whether the connection is verified.
bool dpp::connection::visible |
Visibility of this connection.