fix calculating hoisted color role

also slight optimization + make Snowflake::Invalid a real Snowflake
This commit is contained in:
ouwou
2021-07-21 01:29:17 -04:00
parent ccf7c414be
commit a5e5954ae7
3 changed files with 8 additions and 11 deletions

View File

@@ -5,6 +5,8 @@
constexpr static uint64_t DiscordEpochSeconds = 1420070400;
const Snowflake Snowflake::Invalid = -1ULL;
Snowflake::Snowflake()
: m_num(Invalid) {}