SleepyDiscord::Snowflake
Detailed Description​
template <typename DiscordObject >
struct SleepyDiscord::Snowflake;
Public Types Documentation​
using RawType​
using SleepyDiscord::Snowflake< DiscordObject >::RawType = std::string;
Public Functions Documentation​
function Snowflake​
Snowflake() =default
function Snowflake​
inline Snowflake(
const std::string & snow
)
function Snowflake​
inline Snowflake(
const std::string * snow
)
function Snowflake​
inline Snowflake(
const char * snow
)
function Snowflake​
inline Snowflake(
const nonstd::string_view & snow
)
function Snowflake​
inline Snowflake(
const Snowflake & flake
)
function Snowflake​
inline Snowflake(
const DiscordObject & object
)
function Snowflake​
inline Snowflake(
const DiscordObject * object
)
function Snowflake​
inline Snowflake(
const int64_t number
)
function Snowflake​
inline Snowflake(
const json::Value & value
)
function ~Snowflake​
~Snowflake() =default
function operator==​
inline bool operator==(
const Snowflake & right
) const
function operator!=​
inline bool operator!=(
const Snowflake & right
) const
function operator==​
inline bool operator==(
const char * right
) const
function operator!=​
inline bool operator!=(
const char * right
) const
function operator const std::string &​
inline operator const std::string &() const
function string​
inline const std::string & string() const
function number​
inline const int64_t number() const
function timestamp​
inline std::chrono::time_point< std::chrono::steady_clock > timestamp() const
function empty​
inline const bool empty() const
function serialize​
inline json::Value serialize(
typename json::Value::AllocatorType & alloc
) const
function findObject​
template <class iterator >
inline iterator findObject(
iterator begin,
iterator end
) const
function findObject​
template <class Container >
inline auto findObject(
Container & objects,
std::true_type
) const
function findObject​
template <class Container >
inline auto findObject(
Container & objects,
std::false_type
) const
function findObject​
template <class Container >
inline auto findObject(
Container & objects
) const
function isType​
static inline const bool isType(
const typename json::Value & value
)
Updated on 13 April 2022 at 18:39:59 UTC