Module: @sapphire/snowflake
Classes
Interfaces
Variables
DiscordSnowflake
• Const
DiscordSnowflake: Snowflake
A class for parsing snowflake ids using Discord's snowflake epoch
Which is 2015-01-01 at 00:00:00.000 UTC+0, https://discord.com/developers/docs/reference#snowflakes
Defined in
MaximumIncrement
• Const
MaximumIncrement: 4095n
The maximum value the increment
field accepts in snowflakes.
Defined in
MaximumProcessId
• Const
MaximumProcessId: 31n
The maximum value the processId
field accepts in snowflakes.
Defined in
MaximumWorkerId
• Const
MaximumWorkerId: 31n
The maximum value the workerId
field accepts in snowflakes.
Defined in
TwitterSnowflake
• Const
TwitterSnowflake: Snowflake
A class for parsing snowflake ids using Twitter's snowflake epoch
Which is 2010-11-04 at 01:42:54.657 UTC+0, found in the archived snowflake repository https://github.com/twitter-archive/snowflake/blob/b3f6a3c6ca8e1b6847baa6ff42bf72201e2c2231/src/main/scala/com/twitter/service/snowflake/IdWorker.scala#L25