Resources
Snowflake
All Discord Resources have IDs portrayed as <Snowflake>
. These are Twitter Snowflakes.
To get the date from these, this is used:
(ID / 4194304) + 1420070400000
This creates the milliseconds you see in Resource#creation_time
. You can then wrap it in new Date()
to get a human-readable date.
Shared properties between resources
Property | Type |
---|---|
id | String<Snowflake> |
creationTime | Number |
Version 1.x.x | |
creation_time | Number |