Added SnowflakeUtils

This commit is contained in:
RogueException
2017-04-19 14:50:33 -03:00
parent ff67c0d9c3
commit e762dddfbb
19 changed files with 29 additions and 22 deletions

View File

@@ -32,7 +32,7 @@ namespace Discord.Rest
public string SplashId { get; private set; }
internal bool Available { get; private set; }
public DateTimeOffset CreatedAt => DateTimeUtils.FromSnowflake(Id);
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
public ulong DefaultChannelId => Id;
public string IconUrl => CDN.GetGuildIconUrl(Id, IconId);
public string SplashUrl => CDN.GetGuildSplashUrl(Id, SplashId);