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

The connection object that the user has attached. More...

#include <integration.h>

+ Collaboration diagram for dpp::connection:

Public Member Functions

 connection ()
 Construct a new connection object. More...
 
connectionfill_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< integrationintegrations
 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...
 

Detailed Description

The connection object that the user has attached.

Constructor & Destructor Documentation

◆ connection()

dpp::connection::connection ( )

Construct a new connection object.

Member Function Documentation

◆ fill_from_json()

connection & dpp::connection::fill_from_json ( nlohmann::json *  j)

Read class values from json object

Parameters
jA json object to read from
Returns
A reference to self

Member Data Documentation

◆ friend_sync

bool dpp::connection::friend_sync

whether friend sync is enabled for this connection

◆ id

std::string dpp::connection::id

id of the connection account

◆ integrations

std::vector<integration> dpp::connection::integrations

Optional: an array of partial server integrations.

◆ name

std::string dpp::connection::name

the username of the connection account

◆ revoked

bool dpp::connection::revoked

Optional: whether the connection is revoked.

◆ show_activity

bool dpp::connection::show_activity

whether activities related to this connection will be shown in presence updates

◆ two_way_link

bool dpp::connection::two_way_link

Whether this connection has a corresponding third party OAuth2 token.

◆ type

std::string dpp::connection::type

the service of the connection (twitch, youtube, discord, or guild_subscription)

◆ verified

bool dpp::connection::verified

whether the connection is verified

◆ visible

bool dpp::connection::visible

visibility of this connection

D++ 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