Table of Contents

Class Utilities

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

Various Discord-related utilities.

public static class Utilities
Inheritance
Utilities

Properties

Version

Gets the library version.

Methods

CreateSnowflake(DateTimeOffset)

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

GetShardId(ulong, int)

Gets a shard id from a guild id and total shard count.

GetSnowflakeTime(ulong)

Computes a timestamp from a given snowflake.