Table of Contents

Class Snowflake

Namespace
NetCord
Assembly
NetCord.dll
public static class Snowflake
Inheritance
Snowflake
Inherited Members

Methods

Create(DateTimeOffset)

public static ulong Create(DateTimeOffset createdAt)

Parameters

createdAt DateTimeOffset

Returns

ulong

Create(DateTimeOffset, byte, byte, ushort)

public static ulong Create(DateTimeOffset createdAt, byte internalWorkerId, byte internalProcessId, ushort increment)

Parameters

createdAt DateTimeOffset
internalWorkerId byte
internalProcessId byte
increment ushort

Returns

ulong

CreatedAt(ulong)

public static DateTimeOffset CreatedAt(ulong id)

Parameters

id ulong

Returns

DateTimeOffset

Increment(ulong)

public static ushort Increment(ulong id)

Parameters

id ulong

Returns

ushort

InternalProcessId(ulong)

public static byte InternalProcessId(ulong id)

Parameters

id ulong

Returns

byte

InternalWorkerId(ulong)

public static byte InternalWorkerId(ulong id)

Parameters

id ulong

Returns

byte

Parse(ReadOnlySpan<byte>)

public static ulong Parse(ReadOnlySpan<byte> bytes)

Parameters

bytes ReadOnlySpan<byte>

Returns

ulong

Parse(ReadOnlySpan<char>)

public static ulong Parse(ReadOnlySpan<char> value)

Parameters

value ReadOnlySpan<char>

Returns

ulong

ShardId(ulong, int)

public static int ShardId(ulong guildId, int shardCount)

Parameters

guildId ulong
shardCount int

Returns

int

TryParse(ReadOnlySpan<byte>, out ulong)

public static bool TryParse(ReadOnlySpan<byte> bytes, out ulong id)

Parameters

bytes ReadOnlySpan<byte>
id ulong

Returns

bool

TryParse(ReadOnlySpan<char>, out ulong)

public static bool TryParse(ReadOnlySpan<char> value, out ulong id)

Parameters

value ReadOnlySpan<char>
id ulong

Returns

bool