A stage instance. More...
#include "stage_instance.h"
Public Member Functions | |
stage_instance () | |
Create a stage_instance object. More... | |
~stage_instance ()=default | |
Destroy the stage_instance object. More... | |
std::string | build_json (bool with_id=false) const |
Convert object to json string. More... | |
stage_instance & | fill_from_json (nlohmann::json *j) |
Convert object from nlohmann::json. More... | |
constexpr double | get_creation_time () const noexcept |
Get the creation time of this object according to Discord. More... | |
constexpr bool | operator!= (const managed &other) const noexcept |
Comparison operator for comparing two managed objects by id. More... | |
constexpr bool | operator== (const managed &other) const noexcept |
Comparison operator for comparing two managed objects by id. More... | |
auto | to_json (bool with_id=false) const |
Convert object to nlohmann::json. More... | |
Public Attributes | |
snowflake | channel_id |
The ID of the associated Stage channel. More... | |
bool | discoverable_disabled |
Whether or not Stage Discovery is disabled. More... | |
snowflake | guild_id |
The guild ID of the associated Stage channel. More... | |
snowflake | id = {} |
Unique ID of object set by Discord. More... | |
stage_privacy_level | privacy_level |
The privacy level of the Stage instance. More... | |
std::string | topic |
The topic of the Stage instance (1-120 characters). More... | |
Protected Member Functions | |
stage_instance & | fill_from_json_impl (const nlohmann::json *j) |
Serialise a stage_instance object rom json. More... | |
virtual json | to_json_impl (bool with_id=false) const |
Build json for this object. More... | |
Friends | |
struct | json_interface< stage_instance > |
A stage instance.
Stage instances are like a conference facility, with moderators/speakers and listeners.
dpp::stage_instance::stage_instance | ( | ) |
Create a stage_instance object.
References channel_id, privacy_level, and topic.
|
default |
Destroy the stage_instance 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 |
Serialise a stage_instance object rom json.
|
inlineconstexprnoexceptinherited |
Get the creation time of this object according to Discord.
|
inlineconstexprnoexceptinherited |
Comparison operator for comparing two managed objects by id.
other | Other object to compare against |
|
inlineconstexprnoexceptinherited |
Comparison operator for comparing two managed objects by id.
other | Other object to compare against |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
|
protectedvirtual |
Build json for this object.
with_id | include ID |
|
friend |
snowflake dpp::stage_instance::channel_id |
The ID of the associated Stage channel.
Referenced by stage_instance().
bool dpp::stage_instance::discoverable_disabled |
Whether or not Stage Discovery is disabled.
snowflake dpp::stage_instance::guild_id |
The guild ID of the associated Stage channel.
|
inherited |
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.
Referenced by dpp::poll::add_answer(), dpp::cluster::create_webhook(), dpp::cluster::current_user_join_thread(), dpp::invite::fill_from_json_impl(), dpp::command_permission::fill_from_json_impl(), dpp::interaction::get_resolved_role(), dpp::interaction::get_resolved_user(), dpp::cluster::global_bulk_command_create(), dpp::cluster::global_bulk_command_delete(), dpp::cluster::global_command_delete(), dpp::cluster::global_command_edit(), dpp::cluster::guild_ban_delete(), dpp::cluster::guild_command_create(), dpp::cluster::guild_command_edit_permissions(), dpp::cluster::guild_get_integrations(), dpp::events::guild_member_update::handle(), dpp::events::guild_role_create::handle(), dpp::events::channel_create::handle(), dpp::events::voice_state_update::handle(), dpp::discord_voice_client::handle_frame(), main(), dpp::component::set_disabled(), and dpp::select_option::set_label().
stage_privacy_level dpp::stage_instance::privacy_level |
The privacy level of the Stage instance.
Referenced by stage_instance().
std::string dpp::stage_instance::topic |
The topic of the Stage instance (1-120 characters).
Referenced by stage_instance().