![]() |
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>
Collaboration diagram for dpp::activity:Public Attributes | |
| snowflake | application_id |
| time_t | created_at |
| time_t | end |
| uint8_t | flags |
| std::string | name |
| time_t | start |
| std::string | state |
| activity_type | type |
| std::string | url |
An activity is a representation of what a user is doing. It might be a game, or a website, or a movie. Whatever.
| 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