Class SnowflakeUtils
- Namespace
 - Discord
 
- Assembly
 - Discord.Net.Core.dll
 
Provides a series of helper methods for handling snowflake identifiers.
public static class SnowflakeUtils
  - Inheritance
 - 
      
      SnowflakeUtils
 
- Inherited Members
 
Methods
FromSnowflake(ulong)
Resolves the time of which the snowflake is generated.
public static DateTimeOffset FromSnowflake(ulong value)
  Parameters
valueulongThe snowflake identifier to resolve.
Returns
- DateTimeOffset
 A DateTimeOffset representing the time for when the object is generated.
ToSnowflake(DateTimeOffset)
Generates a pseudo-snowflake identifier with a DateTimeOffset.
public static ulong ToSnowflake(DateTimeOffset value)
  Parameters
valueDateTimeOffsetThe time to be used in the new snowflake.