discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.95k stars 1.26k forks source link

Document discord epoch for snowflakes #456

Closed MinnDevelopment closed 6 years ago

MinnDevelopment commented 6 years ago

In the reference page is a section dedicated to "Snowflake IDs" which should document the epoch used to retrieve the time for a snowflake creation. Additionally I believe it should mention how to retrieve the time as in: (snowflake >> 22) + DISCORD_EPOCH. I currently don't see this documented anywhere and the twitter documentation only mentions a "custom epoch" from what I can tell.

night commented 6 years ago

I don't think we'd be opposed to documenting the snowflake id composition in that section, including our epoch start time. PRs welcome, obviously.

msciotti commented 6 years ago

Agreed. DAPI has a really handy infographic that could be added and explained. PRs welcome, or I can get to it myself.

MinnDevelopment commented 6 years ago

Closed by #466