D++ (DPP)
C++ Discord API Bot Library
|
The managed class is the base class for various types that can be stored in a cache that are identified by a dpp::snowflake id. More...
#include <managed.h>
Public Member Functions | |
managed (const snowflake nid=0) | |
Constructor, initialises ID. More... | |
virtual | ~managed ()=default |
Destroy the managed object. More... | |
double | get_creation_time () const |
Get the creation time of this object according to Discord. More... | |
Public Attributes | |
snowflake | id |
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata. More... | |
The managed class is the base class for various types that can be stored in a cache that are identified by a dpp::snowflake id.
dpp::managed::managed | ( | const snowflake | nid = 0 | ) |
Constructor, initialises ID.
nid | ID to set |
|
virtualdefault |
Destroy the managed object.
double dpp::managed::get_creation_time | ( | ) | const |
Get the creation time of this object according to Discord.
snowflake dpp::managed::id |
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.