Class SnowflakeUtils

Utilities for Discord snowflakes.

See

Discord API Reference

Hierarchy

  • SnowflakeUtils

Constructors

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

Generated using TypeDoc