SleepyDiscord::Activity
Inherits from SleepyDiscord::DiscordObject
Public Types Documentation​
enum ActivityType​
Enumerator | Value | Description |
---|---|---|
ACTIVITY_TYPE_NONE | -1 | |
GAME | 0 | |
STREAMING | 1 | |
LISTENING | 2 |
enum ActivityFlags​
Enumerator | Value | Description |
---|---|---|
NONE | 0 << 0 | |
INSTANCE | 1 << 0 | |
JOIN | 1 << 1 | |
SPECTATE | 1 << 2 | |
JOIN_REQUEST | 1 << 3 | |
SYNC | 1 << 4 | |
PLAY | 1 << 5 |
Public Functions Documentation​
function Activity​
Activity() =default
function ~Activity​
~Activity() =default
function Activity​
Activity(
const json::Value & json
)
function Activity​
inline Activity(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD REQUIRIED_FIELD,
json::pair< json::EnumTypeHelper > &::, "", ::REQUIRIED_FIELD REQUIRIED_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD
)
Public Attributes Documentation​
variable name​
std::string name;
variable type​
enum SleepyDiscord::Activity::ActivityType type = ACTIVITY_TYPE_NONE;
variable url​
std::string url;
variable timestamps​
ActivityTimestamp timestamps;
variable applicationID​
Snowflake< Application > applicationID;
variable details​
std::string details;
variable state​
std::string state;
variable assets​
ActivityAssets assets;
variable secrets​
ActivitySecrets secrets;
variable instance​
bool instance;
variable flags​
enum SleepyDiscord::Activity::ActivityFlags flags = NONE;
Updated on 13 April 2022 at 18:39:58 UTC