distype - v3.0.1
    Preparing search index...

    Class SnowflakeUtils

    Utilities for Discord snowflakes.

    Index

    Properties

    DISCORD_EPOCH: 1420070400000

    The Discord epoch as a unix millisecond timestamp.

    Methods

    • For every ID that is generated on a process, this property of the snowflake is incremented.

      Parameters

      • snowflake: string

      Returns number

    • Determines if a snowflake is valid.

      Parameters

      • snowflake: string

        The snowflake to test.

      Returns boolean

    • Internal Discord process ID the snowflake was created on.

      Parameters

      • snowflake: string

      Returns number

    • The time at which the snowflake was created as a unix millisecond timestamp.

      Parameters

      • snowflake: string

      Returns number

    • Internal Discord worker ID the snowflake was created on.

      Parameters

      • snowflake: string

      Returns number