SleepyDiscord::StageInstance
Inherits from SleepyDiscord::IdentifiableDiscordObject< StageInstance >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< StageInstance >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< StageInstance >
Name | |
---|---|
IdentifiableDiscordObject() =default | |
IdentifiableDiscordObject(Snowflake< Derived > id) | |
operator Snowflake< Derived > &() | |
bool | empty() const |
void | merge(Derived & changes) |
template <class DiscordObject > bool | operator==(const Snowflake< DiscordObject > & right) const |
template <class DiscordObject > bool | operator!=(const Snowflake< DiscordObject > & right) const |
bool | operator==(const Snowflake< Derived > & right) const |
bool | operator!=(const Snowflake< Derived > & right) const |
bool | operator==(const IdentifiableDiscordObject< Derived > & right) const |
bool | operator!=(const IdentifiableDiscordObject< Derived > & right) const |
const Time | getTimestamp() |
Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< StageInstance >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
enum PrivacyLevel​
Enumerator | Value | Description |
---|---|---|
NotSet | -1 | |
PUBLIC | 1 | |
SERVER_ONLY | 2 |
using PrivacyLevelRaw​
using SleepyDiscord::StageInstance::PrivacyLevelRaw = int;
Public Functions Documentation​
function StageInstance​
StageInstance() =default
function ~StageInstance​
~StageInstance() =default
function StageInstance​
StageInstance(
const json::Value & json
)
function StageInstance​
inline StageInstance(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable serverID​
Snowflake< Server > serverID;
variable channelID​
Snowflake< Channel > channelID;
variable topic​
std::string topic;
variable privacyLevel​
PrivacyLevel privacyLevel = PrivacyLevel::NotSet;
variable discoverableDisabled​
bool discoverableDisabled = false;
Updated on 13 April 2022 at 18:39:59 UTC