Added support for animated emoji (#913)

* Added support for animated emoji

This was such a useful feature Discord, I'm glad you added this instead
of fixing bugs.

* Fix bugs in emote parser

* Added unit tests for emotes
This commit is contained in:
Christopher F
2017-12-23 15:09:24 -05:00
committed by GitHub
parent 34b4e5a6d2
commit a19ff188e9
8 changed files with 68 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ namespace Discord.Rest
{
public static GuildEmote ToEntity(this API.Emoji model)
{
return new GuildEmote(model.Id.Value, model.Name, model.Managed, model.RequireColons, ImmutableArray.Create(model.Roles));
return new GuildEmote(model.Id.Value, model.Name, model.Animated.GetValueOrDefault(), model.Managed, model.RequireColons, ImmutableArray.Create(model.Roles));
}
public static Embed ToEntity(this API.Embed model)