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) 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 | 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
std::string dpp::connection::type |
the service of the connection (twitch, youtube)
bool dpp::connection::verified |
whether the connection is verified
bool dpp::connection::visible |
visibility of this connection