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

@@ -53,7 +53,7 @@ namespace Discord.WebSocket
public string IconId { get; private set; }
public string SplashId { get; private set; }
public DateTimeOffset CreatedAt => DateTimeUtils.FromSnowflake(Id);
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
public SocketTextChannel DefaultChannel => GetTextChannel(Id);
public string IconUrl => CDN.GetGuildIconUrl(Id, IconId);
public string SplashUrl => CDN.GetGuildSplashUrl(Id, SplashId);