Skip to main content

Class: SnowflakeUtil

Constructors​

constructor​

• new SnowflakeUtil()

Methods​

toBinary​

▸ Static toBinary(sf): string

Converts a snowflake to a binary string.

Credit

https://github.com/discordjs/discord.js/blob/5ec04e077bbbb9799f3ef135cade84b77346ef20/src/util/SnowflakeUtil.js#62

Parameters​

NameTypeDescription
sfstringSnowflake

Returns​

string

Binary representation of the snowflake

Defined in​

packages/disploy/src/utils/SnowflakeUtil.ts:8


toTimestamp​

▸ Static toTimestamp(sf): number

Converts a snowflake to a timestamp.

Parameters​

NameTypeDescription
sfstringSnowflake

Returns​

number

Timestamp of the snowflake

Defined in​

packages/disploy/src/utils/SnowflakeUtil.ts:28