dpp::voiceregion
dpp::json_interface< voiceregion >
voiceregion.h
struct friend struct json_interface< voiceregion > json_interface< voiceregion > dpp::voiceregion::json_interface< voiceregion > json_interface< voiceregion >
uint8_t uint8_t dpp::voiceregion::flags flags dpp::voiceregion::flags

Flags bitmap.

std::string std::string dpp::voiceregion::id id dpp::voiceregion::id

Voice server ID.

std::string std::string dpp::voiceregion::name name dpp::voiceregion::name

Voice server name.

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

Fill object properties from JSON.

j

JSON to fill from

voiceregion& Reference to self

json virtual json dpp::voiceregion::to_json_impl (bool with_id=false) const to_json_impl dpp::voiceregion::to_json_impl bool with_id false

Build a json for this object.

with_id

Add ID to output

json JSON string

dpp::voiceregion::voiceregion
()
voiceregion
dpp::voiceregion::voiceregion

Construct a new voiceregion object.

virtual dpp::voiceregion::~voiceregion
()=default
~voiceregion
dpp::voiceregion::~voiceregion

Destroy the voiceregion object.

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

voiceregion & voiceregion & dpp::json_interface< voiceregion >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< voiceregion >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

bool bool dpp::voiceregion::is_custom () const is_custom dpp::voiceregion::is_custom

True if is a custom voice server.

true if custom

bool bool dpp::voiceregion::is_deprecated () const is_deprecated dpp::voiceregion::is_deprecated

True if is a deprecated voice server.

true if deprecated

bool bool dpp::voiceregion::is_optimal () const is_optimal dpp::voiceregion::is_optimal

True if is the optimal voice server.

true if optimal

auto auto dpp::json_interface< voiceregion >::to_json (bool with_id=false) const to_json dpp::json_interface< voiceregion >::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 voice region on discord.

dpp::json_interface< T >
dpp::json_interface< voiceregion >
< voiceregion >
dpp::voiceregion
dpp::json_interface< T >
dpp::json_interface< voiceregion >
< voiceregion >
dpp::voiceregion
id
name
flags
std::basic_string< Char >
std::string
uint8_t
- dpp::voiceregion
  build_json
- dpp::voiceregion
  fill_from_json
- dpp::voiceregion
  fill_from_json_impl
- dpp::voiceregion
  flags
- dpp::voiceregion
  id
- dpp::voiceregion
  is_custom
- dpp::voiceregion
  is_deprecated
- dpp::voiceregion
  is_optimal
- dpp::voiceregion
  json_interface< voiceregion >
- dpp::voiceregion
  name
- dpp::voiceregion
  to_json
- dpp::voiceregion
  to_json_impl
- dpp::voiceregion
  voiceregion
- dpp::voiceregion
  ~voiceregion