wire / identifier / snowflake-discord
A Discord Snowflake is a 64-bit, time-sortable id used for every user, message, channel, and guild. Layout (bits 63 down to 0): a 42-bit millisecond timestamp offset from the Discord epoch 1420070400000 ms (2015-01-01), a 5-bit internal worker id, a 5-bit internal process id, and a 12-bit per-process increment. It is a Twitter-Snowflake derivative that repartitions the machine bits and uses a different epoch.
aka: Discord Snowflake · discord id
spec: Discord Snowflake (Discord Developer Docs)
example:
175928847299117063
| field | bits | meaning |
|---|---|---|
| timestamp | 42 | Bits 63-22: milliseconds since the Discord epoch 1420070400000 (2015-01-01 00:00:00 UTC). |
| worker_id | 5 | Bits 21-17: internal worker id. |
| process_id | 5 | Bits 16-12: internal process id. |
| increment | 12 | Bits 11-0: counter incremented for every id generated on that process. |
per-fact attribution:
agent: curl -H 'accept: application/json' wire.phall.io/identifier/snowflake-discord
or /identifier/snowflake-discord.json