From a5e5954ae72c59feeaa54c328d89a46f048dbf47 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 21 Jul 2021 01:29:17 -0400 Subject: fix calculating hoisted color role also slight optimization + make Snowflake::Invalid a real Snowflake --- discord/snowflake.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/snowflake.hpp') diff --git a/discord/snowflake.hpp b/discord/snowflake.hpp index 4263bab..0b79723 100644 --- a/discord/snowflake.hpp +++ b/discord/snowflake.hpp @@ -26,7 +26,7 @@ struct Snowflake { return m_num; } - const static uint64_t Invalid = -1ULL; // makes sense to me + const static Snowflake Invalid; // makes sense to me const static uint64_t SecondsInterval = 4194304000ULL; // the "difference" between two snowflakes one second apart friend void from_json(const nlohmann::json &j, Snowflake &s); -- cgit v1.2.3