Skip to content

Snowflake

Wrapper around Discord snowflakes, allwowing developers to query information about a snowflake

Properties

The Snowflake instance has no set properties!

Methods

The Snowflake instance has no set methods!

Functions

getTimestamp

Snowflake . getTimestamp (

     self: Snowflake
)  -> ()

Returns the timestamp of the snowflake

getInternalWorkerId

Snowflake . getInternalWorkerId (

     self: Snowflake
)  -> ()

Returns the internal worker ID of the snowflake

getInternalProcessId

Snowflake . getInternalProcessId (

     self: Snowflake
)  -> ()

Returns the internal process ID of the snowflake

getIncrement

Snowflake . getIncrement (

     self: Snowflake
)  -> ()

Returns the increment of the snowflake

new

Snowflake . new (

     snowflake: string
)  -> ()

Creates a new snowflake