diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-25 02:37:31 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-25 02:37:31 -0500 |
commit | 41d80af128cc74e538a2f5d2474ca49febc52c35 (patch) | |
tree | 5b5be602db4c84874998fbadffe2e19011c3fc13 /src/discord/snowflake.hpp | |
parent | 145504bdd66e93fe13426fc943e903e4d0db08d1 (diff) | |
download | abaddon-portaudio-41d80af128cc74e538a2f5d2474ca49febc52c35.tar.gz abaddon-portaudio-41d80af128cc74e538a2f5d2474ca49febc52c35.zip |
mark more channels as unread properly
Diffstat (limited to 'src/discord/snowflake.hpp')
-rw-r--r-- | src/discord/snowflake.hpp | 3 |
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); |