summaryrefslogtreecommitdiff
path: root/src/discord/snowflake.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/snowflake.hpp')
-rw-r--r--src/discord/snowflake.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/discord/snowflake.hpp b/src/discord/snowflake.hpp
index 0b79723..f2da5d1 100644
--- a/src/discord/snowflake.hpp
+++ b/src/discord/snowflake.hpp
@@ -10,6 +10,7 @@ struct Snowflake {
Snowflake(const Glib::ustring &str);
static Snowflake FromNow(); // not thread safe
+ static Snowflake FromISO8601(std::string_view ts);
bool IsValid() const;
std::string GetLocalTimestamp() const;
@@ -26,7 +27,7 @@ struct Snowflake {
return m_num;
}
- const static Snowflake Invalid; // 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);