dpp::guild_widget
dpp::json_interface< guild_widget >
guild.h
struct friend struct json_interface< guild_widget > json_interface< guild_widget > dpp::guild_widget::json_interface< guild_widget > json_interface< guild_widget >
snowflake snowflake dpp::guild_widget::channel_id channel_id dpp::guild_widget::channel_id

Channel widget points to.

bool bool dpp::guild_widget::enabled enabled dpp::guild_widget::enabled

True if enabled.

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

Build a guild widget from json.

j

json to build from

guild_widget& reference to self

json json dpp::guild_widget::to_json_impl (bool with_id=false) const to_json_impl dpp::guild_widget::to_json_impl bool with_id false

Build json for a guild widget.

with_id

Add ID to output

std::string guild widget stringified json

dpp::guild_widget::guild_widget
()
guild_widget
dpp::guild_widget::guild_widget

Construct a new guild widget object.

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

guild_widget & guild_widget & dpp::json_interface< guild_widget >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< guild_widget >::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< guild_widget >::to_json (bool with_id=false) const to_json dpp::json_interface< guild_widget >::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

Represents a guild widget, simple web widget of member list.

dpp::guild_widget
dpp::json_interface< T >
dpp::json_interface< guild_widget >
< guild_widget >
bool
dpp::guild_widget
channel_id
enabled
dpp::json_interface< T >
dpp::json_interface< guild_widget >
< guild_widget >
dpp::snowflake
value
uint64_t
- dpp::guild_widget
  build_json
- dpp::guild_widget
  channel_id
- dpp::guild_widget
  enabled
- dpp::guild_widget
  fill_from_json
- dpp::guild_widget
  fill_from_json_impl
- dpp::guild_widget
  guild_widget
- dpp::guild_widget
  json_interface< guild_widget >
- dpp::guild_widget
  to_json
- dpp::guild_widget
  to_json_impl