D++ (DPP)
C++ Discord API Bot Library
|
An activity is a representation of what a user is doing. It might be a game, or a website, or a movie. Whatever. More...
#include <presence.h>
Public Member Functions | |
activity ()=default | |
activity (const activity_type typ, const std::string &nam, const std::string &stat, const std::string &url_) | |
Construct a new activity. More... | |
Public Attributes | |
std::string | name |
std::string | state |
std::string | url |
activity_type | type |
time_t | created_at |
time_t | start |
time_t | end |
snowflake | application_id |
uint8_t | flags |
An activity is a representation of what a user is doing. It might be a game, or a website, or a movie. Whatever.
|
default |
dpp::activity::activity | ( | const activity_type | typ, |
const std::string & | nam, | ||
const std::string & | stat, | ||
const std::string & | url_ | ||
) |
Construct a new activity.
typ | |
nam | |
stat | |
url_ |
snowflake dpp::activity::application_id |
Creating application (e.g. a linked account on the user's client)
time_t dpp::activity::created_at |
Time activity was created
time_t dpp::activity::end |
End time, e.g. for songs on spotify
uint8_t dpp::activity::flags |
Flags bitmask from activity_flags
std::string dpp::activity::name |
Name of ativity e.g. "Fortnite"
time_t dpp::activity::start |
Start time. e.g. when game was started
std::string dpp::activity::state |
State of activity. e.g. "Waiting in lobby"
activity_type dpp::activity::type |
Activity type
std::string dpp::activity::url |
URL. Only applicable for certain sites such a YouTube Alias: details