summaryrefslogtreecommitdiff
path: root/discord/snowflake.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/snowflake.hpp')
-rw-r--r--discord/snowflake.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/snowflake.hpp b/discord/snowflake.hpp
index c6770a1..4263bab 100644
--- a/discord/snowflake.hpp
+++ b/discord/snowflake.hpp
@@ -26,7 +26,8 @@ struct Snowflake {
return m_num;
}
- const static int Invalid = -1;
+ const static uint64_t Invalid = -1ULL; // 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);
friend void to_json(nlohmann::json &j, const Snowflake &s);