![]()  | 
  
    D++ (DPP)
    
   C++ Discord API Bot Library 
   | 
 
Represents an integration on a guild, e.g. a connection to twitch. More...
#include <integration.h>
 Inheritance diagram for dpp::integration:
 Collaboration diagram for dpp::integration:Public Member Functions | |
| integration () | |
| ~integration () | |
| virtual std::string | build_json (bool with_id=false) const | 
| bool | emoticons_enabled () const | 
| bool | expiry_kicks_user () const | 
| integration & | fill_from_json (nlohmann::json *j) | 
| double | get_creation_time () const | 
| Get the creation time of this object according to Discord.  More... | |
| bool | is_enabled () const | 
| bool | is_revoked () const | 
| bool | is_syncing () const | 
| bool | operator!= (const managed &other) const noexcept | 
| Comparison operator for comparing two managed objects by id.  More... | |
| bool | operator== (const managed &other) const noexcept | 
| Comparison operator for comparing two managed objects by id.  More... | |
Public Attributes | |
| std::string | account_id | 
| std::string | account_name | 
| integration_app | app | 
| uint32_t | expire_grace_period | 
| uint8_t | flags | 
| snowflake | id | 
| Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.  More... | |
| std::string | name | 
| snowflake | role_id | 
| uint32_t | subscriber_count | 
| time_t | synced_at | 
| integration_type | type | 
| snowflake | user_id | 
Represents an integration on a guild, e.g. a connection to twitch.
| dpp::integration::integration | ( | ) | 
Default constructor
| dpp::integration::~integration | ( | ) | 
Default destructor
      
  | 
  virtual | 
Build a json string from this object.
| with_id | Add ID to output | 
Reimplemented from dpp::json_interface< integration >.
| bool dpp::integration::emoticons_enabled | ( | ) | const | 
True if emoticons are enabled
| bool dpp::integration::expiry_kicks_user | ( | ) | const | 
True if expiring kicks the user
| integration & dpp::integration::fill_from_json | ( | nlohmann::json * | j | ) | 
Read class values from json object
| j | A json object to read from | 
      
  | 
  inherited | 
Get the creation time of this object according to Discord.
| bool dpp::integration::is_enabled | ( | ) | const | 
True if integration is enabled
| bool dpp::integration::is_revoked | ( | ) | const | 
True if has been revoked
| bool dpp::integration::is_syncing | ( | ) | const | 
True if is syncing
      
  | 
  noexceptinherited | 
Comparison operator for comparing two managed objects by id.
| other | Other object to compare against | 
      
  | 
  noexceptinherited | 
Comparison operator for comparing two managed objects by id.
| other | Other object to compare against | 
| std::string dpp::integration::account_id | 
Account id
| std::string dpp::integration::account_name | 
Account name
| integration_app dpp::integration::app | 
The bot/OAuth2 application for discord integrations
| uint32_t dpp::integration::expire_grace_period | 
The grace period (in days) before expiring subscribers
| uint8_t dpp::integration::flags | 
Integration flags from dpp::integration_flags
      
  | 
  inherited | 
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.
| std::string dpp::integration::name | 
Integration name
| snowflake dpp::integration::role_id | 
Role id
| uint32_t dpp::integration::subscriber_count | 
Subscriber count
| time_t dpp::integration::synced_at | 
Sync time
| integration_type dpp::integration::type | 
Integration type
| snowflake dpp::integration::user_id | 
User id