A Discord bot library written in C++, with custom asynchronous coroutines.
No Matches
DiscordCoreAPI::DiscordEntity Class Reference

Base class for all Discord entities. More...

#include <FoundationEntities.hpp>

Inheritance diagram for DiscordCoreAPI::DiscordEntity:

Public Member Functions

std::string getCreatedAtTimestamp (TimeFormat timeFormat)
 Converts the snowflake-id into a time and date stamp.

Public Data Members

Snowflake id {}

Member Function Documentation

◆ getCreatedAtTimestamp()

std::string DiscordCoreAPI::DiscordEntity::getCreatedAtTimestamp ( TimeFormat  timeFormat)
std::string A std::string containing the timeStamp.

Definition at line 247 of file FoundationEntities.cpp.

Member Data Documentation

◆ id

Snowflake DiscordCoreAPI::DiscordEntity::id {}

The identifier "snowflake" of the given entity.

Definition at line 358 of file FoundationEntities.hpp.

The documentation for this class was generated from the following files: