LogoAntiRaid

@discord-types/snowflake/init

API reference for @discord-types/snowflake/init

@discord-types/snowflake/init

Types

Snowflake

Raw Type
type Snowflake = Snowflake.Prototype, & {
	snowflake: string
}

Intersection with variants:

Variant 2
PropTypeDescription
snowflake
-

Functions

Snowflake.Prototype.getTimestamp

[[ Returns the timestamp of the snowflake ]]

Function Signature
--[[
	Returns the timestamp of the snowflake
]]
function Snowflake.Prototype.getTimestamp(self: Snowflake) end

Snowflake.Prototype.getInternalWorkerId

[[ Returns the internal worker ID of the snowflake ]]

Function Signature
--[[
	Returns the internal worker ID of the snowflake
]]
function Snowflake.Prototype.getInternalWorkerId(self: Snowflake) end

Snowflake.Prototype.getInternalProcessId

[[ Returns the internal process ID of the snowflake ]]

Function Signature
--[[
	Returns the internal process ID of the snowflake
]]
function Snowflake.Prototype.getInternalProcessId(self: Snowflake) end

Snowflake.Prototype.getIncrement

[[ Returns the increment of the snowflake ]]

Function Signature
--[[
	Returns the increment of the snowflake
]]
function Snowflake.Prototype.getIncrement(self: Snowflake) end

Snowflake.Interface.new

[[ Creates a new snowflake ]]

Function Signature
--[[
	Creates a new snowflake
]]
function Snowflake.Interface.new(snowflake: string) -> Snowflake end

Arguments

snowflake

string

Returns

ret1

Snowflake

Last updated on