Skip to main content

SleepyDiscord::Activity

Inherits from SleepyDiscord::DiscordObject

Public Types Documentation​

enum ActivityType​

EnumeratorValueDescription
ACTIVITY_TYPE_NONE-1
GAME0
STREAMING1
LISTENING2

enum ActivityFlags​

EnumeratorValueDescription
NONE0 << 0
INSTANCE1 << 0
JOIN1 << 1
SPECTATE1 << 2
JOIN_REQUEST1 << 3
SYNC1 << 4
PLAY1 << 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