dpp::connection
dpp::json_interface< connection >
integration.h
struct friend struct json_interface< connection > json_interface< connection > dpp::connection::json_interface< connection > json_interface< connection >
bool bool dpp::connection::friend_sync friend_sync dpp::connection::friend_sync

Whether friend sync is enabled for this connection.

std::string std::string dpp::connection::id id dpp::connection::id

ID of the connection account.

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

Optional: an array of partial server integrations.

std::string std::string dpp::connection::name name dpp::connection::name

the username of the connection account.

bool bool dpp::connection::revoked revoked dpp::connection::revoked

Optional: whether the connection is revoked.

bool bool dpp::connection::show_activity show_activity dpp::connection::show_activity

Whether activities related to this connection will be shown in presence updates.

bool bool dpp::connection::two_way_link two_way_link dpp::connection::two_way_link

Whether this connection has a corresponding third party OAuth2 token.

std::string std::string dpp::connection::type type dpp::connection::type

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

bool bool dpp::connection::verified verified dpp::connection::verified

Whether the connection is verified.

bool bool dpp::connection::visible visible dpp::connection::visible

Visibility of this connection.

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

Read class values from json object j

A json object to read from

A reference to self

dpp::connection::connection
()
connection
dpp::connection::connection

Construct a new connection object.

std::string std::string dpp::json_interface< connection >::build_json (bool with_id=false) const build_json dpp::json_interface< 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

connection & connection & dpp::json_interface< connection >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< 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< connection >::to_json (bool with_id=false) const to_json dpp::json_interface< 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 connection object that the user has attached.

dpp::connection
dpp::json_interface< T >
dpp::json_interface< connection >
< connection >
T
bool
dpp::connection
id
name
type
friend_sync
revoked
show_activity
two_way_link
verified
visible
integrations
dpp::integration
name
type
flags
role_id
expire_grace_period
subscriber_count
user_obj
account
synced_at
app
scopes
dpp::integration_account
id
name
dpp::integration_app
id
description
name
icon
bot
dpp::json_interface< T >
dpp::json_interface< connection >
< connection >
dpp::json_interface< integration >
< integration >
dpp::json_interface< user >
< user >
dpp::managed
id
dpp::snowflake
value
dpp::user
global_name
username
avatar
avatar_decoration
primary_guild
flags
discriminator
refcount
dpp::utility::iconhash
first
second
dpp::utility::primaryguild
id
enabled
tag
badge
integration_type
std::basic_string< Char >
std::string
std::vector< T >
elements
std::vector< dpp::integration >
elements
< dpp::integration >
std::vector< std::string >
elements
< std::string >
time_t
uint16_t
uint32_t
uint64_t
uint8_t
- dpp::connection
  build_json
- dpp::connection
  connection
- dpp::connection
  fill_from_json
- dpp::connection
  fill_from_json_impl
- dpp::connection
  friend_sync
- dpp::connection
  id
- dpp::connection
  integrations
- dpp::connection
  json_interface< connection >
- dpp::connection
  name
- dpp::connection
  revoked
- dpp::connection
  show_activity
- dpp::connection
  to_json
- dpp::connection
  two_way_link
- dpp::connection
  type
- dpp::connection
  verified
- dpp::connection
  visible