wire / identifier / snowflake-discord

Snowflake ID (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.

identifier kind identifier status de-facto verification verified tier C identifier@1

aka: Discord Snowflake · discord id

identifier

spec: Discord Snowflake (Discord Developer Docs)

length 64 bits sortable decimal uint64 (delivered as a JSON string to avoid 53-bit float precision loss)

example:

175928847299117063

fieldbitsmeaning
timestamp42Bits 63-22: milliseconds since the Discord epoch 1420070400000 (2015-01-01 00:00:00 UTC).
worker_id5Bits 21-17: internal worker id.
process_id5Bits 16-12: internal process id.
increment12Bits 11-0: counter incremented for every id generated on that process.

provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/identifier/snowflake-discord or /identifier/snowflake-discord.json