D++ (DPP)
C++ Discord API Bot Library
|
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... | |
guild_widget & | fill_from_json (nlohmann::json *j) |
Build a guild widget from json. More... | |
virtual std::string | build_json (bool with_id=false) const |
Build json for a guild widget. More... | |
Public Attributes | |
snowflake | channel_id |
Channel widget points to. More... | |
bool | enabled |
True if enabled. More... | |
Represents a guild widget, simple web widget of member list.
dpp::guild_widget::guild_widget | ( | ) |
Construct a new guild widget object.
|
virtual |
Build json for a guild widget.
with_id | Add ID to output |
guild_widget & dpp::guild_widget::fill_from_json | ( | nlohmann::json * | j | ) |
Build a guild widget from json.
j | json to build from |
snowflake dpp::guild_widget::channel_id |
Channel widget points to.
bool dpp::guild_widget::enabled |
True if enabled.