discord-snowflake

A library for working snowflakes, Discord compatible

6 releases

0.1.5 Jul 29, 2024
0.1.4 Jul 29, 2024

MIT license

8KB
155 lines

A simple Discord-compatible snowflake library.

Features

  • Parse from string
  • Generation with custom epoch

Feature Flags

Feature Flag Description
serde support for (de)serializing with serde
sqlx support for encoding and decoding with sqlx
twilight support for converting to and from Twilight Id's

Dependencies

~0.3–15MB
~206K SLoC