Table of Contents

Method CreateSnowflake

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

CreateSnowflake(DateTimeOffset)

Creates a snowflake from a given System.DateTimeOffset. This can be used to provide "timestamps" for methods like GetMessagesAfterAsync(ulong, int, CancellationToken).

public static ulong CreateSnowflake(DateTimeOffset dateTimeOffset)

Parameters

dateTimeOffset DateTimeOffset

DateTimeOffset to create a snowflake from.

Returns

ulong

Returns a snowflake representing the given date and time.