Represents a guild widget, simple web widget of member list. More...
#include "guild.h"


Public Member Functions | |
| guild_widget () | |
| Construct a new guild widget object. More... | |
| std::string | build_json (bool with_id=false) const |
| Convert object to json string. More... | |
| guild_widget & | fill_from_json (nlohmann::json *j) |
| Convert object from nlohmann::json. More... | |
| 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 |
|
protected |
Build json for a guild widget.
| with_id | Add ID to output |
References dpp::find_role(), dpp::guild_member::get_roles(), dpp::guild::owner_id, dpp::role::permissions, and dpp::guild_member::user_id.

|
friend |
| snowflake dpp::guild_widget::channel_id |
Channel widget points to.
| bool dpp::guild_widget::enabled |
True if enabled.