Skip to content
Functionutilsv0.8.17

timestampFromSnowflake

Milliseconds since the unix epoch encoded in a Discord snowflake.

Throws:

  • A SyntaxError when the input is a non-numeric string.

timestampFromSnowflake(
    snowflake: string
): EpochMs