dpp::managed
dpp::application
dpp::automod_rule
dpp::channel
dpp::collected_reaction
dpp::emoji
dpp::entitlement
dpp::forum_tag
dpp::guild
dpp::integration
dpp::interaction
dpp::message
dpp::onboarding_prompt
dpp::onboarding_prompt_option
dpp::role
dpp::scheduled_event
dpp::sku
dpp::slashcommand
dpp::stage_instance
dpp::sticker
dpp::sticker_pack
dpp::user
dpp::webhook
managed.h
snowflake snowflake dpp::managed::id id 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.

dpp::managed::managed
()=default
managed
dpp::managed::managed

Constructor, initialises id to 0.

dpp::managed::managed
(const managed &rhs)=default
managed
dpp::managed::managed
const managed & rhs

Copy constructor.

rhs

Object to copy

dpp::managed::managed
(const snowflake nid)
managed
dpp::managed::managed
const snowflake nid

Constructor, initialises ID.

nid

ID to set

dpp::managed::managed
(managed &&rhs)=default
managed
dpp::managed::managed
managed && rhs

Move constructor.

Effectively equivalent to copy constructor rhs

Object to move from

virtual dpp::managed::~managed
()=default
~managed
dpp::managed::~managed

Destroy the managed object.

double double dpp::managed::get_creation_time () const noexcept get_creation_time dpp::managed::get_creation_time

Get the creation time of this object according to Discord.

double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

bool bool dpp::managed::operator!= (const managed &other) const noexcept operator!= dpp::managed::operator!= const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are not the same id

false objects are the same id

managed & managed & dpp::managed::operator= (const managed &rhs)=default operator= dpp::managed::operator= const managed & rhs

Copy assignment operator.

rhs

Object to copy

managed & managed & dpp::managed::operator= (managed &&rhs)=default operator= dpp::managed::operator= managed && rhs

Move assignment operator.

rhs

Object to move from

bool bool dpp::managed::operator== (const managed &other) const noexcept operator== dpp::managed::operator== const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are the same id

false objects are not the same id

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::application
dpp::automod_rule
dpp::channel
dpp::collected_reaction
dpp::emoji
dpp::entitlement
dpp::forum_tag
dpp::guild
dpp::integration
dpp::interaction
dpp::managed
dpp::message
dpp::onboarding_prompt
dpp::onboarding_prompt_option
dpp::role
dpp::scheduled_event
dpp::sku
dpp::slashcommand
dpp::stage_instance
dpp::sticker
dpp::sticker_pack
dpp::thread
dpp::user
dpp::user_identified
dpp::webhook
dpp::managed
id
dpp::snowflake
value
uint64_t
- dpp::managed
  get_creation_time
- dpp::managed
  id
- dpp::managed
  managed
- dpp::managed
  managed
- dpp::managed
  managed
- dpp::managed
  managed
- dpp::managed
  operator!=
- dpp::managed
  operator=
- dpp::managed
  operator=
- dpp::managed
  operator==
- dpp::managed
  ~managed