![]()  | 
  
    D++ (DPP)
    
   C++ Discord API Bot Library 
   | 
 
Represents a guild widget, simple web widget of member list. More...
 Inheritance diagram for dpp::guild_widget:
 Collaboration diagram for dpp::guild_widget:Public Member Functions | |
| guild_widget () | |
| Construct a new guild widget object.  More... | |
| template<typename U = T, typename = decltype(std::declval<U&>().to_json_impl(bool{}))> | |
| std::string | build_json (bool with_id=false) const | 
| Convert object to json string.  More... | |
| template<typename U = T, typename = decltype(std::declval<U&>().fill_from_json_impl(std::declval<nlohmann::json*>()))> | |
| T & | fill_from_json (nlohmann::json *j) | 
| Convert object from nlohmann::json.  More... | |
| template<typename U = T, typename = decltype(std::declval<U&>().to_json_impl(bool{}))> | |
| auto | to_json (bool with_id=false) const | 
| Convert object to nlohmann::json.  More... | |
Public Attributes | |
| snowflake | channel_id | 
| Channel widget points to.  More... | |
| bool | enabled | 
| True if enabled.  More... | |
Protected Member Functions | |
| guild_widget & | fill_from_json_impl (nlohmann::json *j) | 
| Build a guild widget from json.  More... | |
| json | to_json_impl (bool with_id=false) const | 
| Build json for a guild widget.  More... | |
Friends | |
| struct | json_interface< guild_widget > | 
Represents a guild widget, simple web widget of member list.
| dpp::guild_widget::guild_widget | ( | ) | 
Construct a new guild widget object.
      
  | 
  inlineinherited | 
Convert object to json string.
| with_id | Whether to include the ID or not | 
      
  | 
  inlineinherited | 
Convert object from nlohmann::json.
| j | nlohmann::json object | 
      
  | 
  protected | 
Build a guild widget from json.
| j | json to build from | 
      
  | 
  inlineinherited | 
Convert object to nlohmann::json.
| with_id | Whether to include the ID or not | 
Build json for a guild widget.
| with_id | Add ID to output | 
      
  | 
  friend | 
| snowflake dpp::guild_widget::channel_id | 
Channel widget points to.
| bool dpp::guild_widget::enabled | 
True if enabled.