dpp::stage_instance
dpp::managed
dpp::json_interface< stage_instance >
stage_instance.h
struct friend struct json_interface< stage_instance > json_interface< stage_instance > dpp::stage_instance::json_interface< stage_instance > json_interface< stage_instance >
snowflake snowflake dpp::stage_instance::channel_id channel_id dpp::stage_instance::channel_id

The ID of the associated Stage channel.

bool bool dpp::stage_instance::discoverable_disabled discoverable_disabled dpp::stage_instance::discoverable_disabled

Whether or not Stage Discovery is disabled.

snowflake snowflake dpp::stage_instance::guild_id guild_id dpp::stage_instance::guild_id

The guild ID of the associated Stage channel.

snowflake snowflake dpp::managed::id id dpp::managed::id = {}

Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.

stage_privacy_level stage_privacy_level dpp::stage_instance::privacy_level privacy_level dpp::stage_instance::privacy_level

The privacy level of the Stage instance.

std::string std::string dpp::stage_instance::topic topic dpp::stage_instance::topic

The topic of the Stage instance (1-120 characters).

stage_instance & stage_instance & dpp::stage_instance::fill_from_json_impl (const nlohmann::json *j) fill_from_json_impl dpp::stage_instance::fill_from_json_impl const nlohmann::json * j

Serialise a stage_instance object rom json.

stage_instance& a reference to self

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

Build json for this object.

with_id

include ID

json Json of this object

dpp::stage_instance::stage_instance
()
stage_instance
dpp::stage_instance::stage_instance

Create a stage_instance object.

dpp::stage_instance::~stage_instance
()=default
~stage_instance
dpp::stage_instance::~stage_instance

Destroy the stage_instance object.

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

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

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

double double dpp::managed::get_creation_time () const noexcept get_creation_time dpp::managed::get_creation_time

Get the creation time of this object according to Discord.

double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

bool bool dpp::managed::operator!= (const managed &other) const noexcept operator!= dpp::managed::operator!= const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are not the same id

false objects are the same id

bool bool dpp::managed::operator== (const managed &other) const noexcept operator== dpp::managed::operator== const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are the same id

false objects are not the same id

auto auto dpp::json_interface< stage_instance >::to_json (bool with_id=false) const to_json dpp::json_interface< stage_instance >::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

A stage instance. Stage instances are like a conference facility, with moderators/speakers and listeners.

dpp::json_interface< T >
dpp::json_interface< stage_instance >
< stage_instance >
dpp::managed
dpp::stage_instance
bool
dpp::json_interface< T >
dpp::json_interface< stage_instance >
< stage_instance >
dpp::managed
id
dpp::snowflake
value
dpp::stage_instance
channel_id
guild_id
topic
privacy_level
discoverable_disabled
stage_privacy_level
std::basic_string< Char >
std::string
uint64_t
- dpp::stage_instance
  build_json
- dpp::stage_instance
  channel_id
- dpp::stage_instance
  discoverable_disabled
- dpp::stage_instance
  fill_from_json
- dpp::stage_instance
  fill_from_json_impl
- dpp::stage_instance
  get_creation_time
- dpp::stage_instance
  guild_id
- dpp::stage_instance
  id
- dpp::stage_instance
  json_interface< stage_instance >
- dpp::stage_instance
  managed
- dpp::stage_instance
  managed
- dpp::stage_instance
  managed
- dpp::stage_instance
  managed
- dpp::stage_instance
  operator!=
- dpp::stage_instance
  operator=
- dpp::stage_instance
  operator=
- dpp::stage_instance
  operator==
- dpp::stage_instance
  privacy_level
- dpp::stage_instance
  stage_instance
- dpp::stage_instance
  to_json
- dpp::stage_instance
  to_json_impl
- dpp::stage_instance
  topic
- dpp::stage_instance
  ~managed
- dpp::stage_instance
  ~stage_instance