D++ (DPP)
C++ Discord API Bot Library
|
The connection object that the user has attached. More...
#include <integration.h>
Public Member Functions | |
connection () | |
Construct a new connection object. More... | |
connection & | fill_from_json (nlohmann::json *j) |
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... | |
The connection object that the user has attached.
dpp::connection::connection | ( | ) |
Construct a new connection object.
connection & dpp::connection::fill_from_json | ( | nlohmann::json * | j | ) |
Read class values from json object
j | A json object to read from |
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