This repository has been archived by the owner on Jan 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #1. Implemented animated emoji support.
- Loading branch information
Showing
5 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
using System; | ||
|
||
namespace EmoteScavenger | ||
namespace EmoteScavenger | ||
{ | ||
public struct Emoji | ||
{ | ||
public string Name { get; } | ||
public ulong Id { get; } | ||
public string GuildName { get; } | ||
public ulong GuildId { get; } | ||
public string Url { get; } | ||
public bool IsAnimated { get; } | ||
|
||
public Emoji(string name, ulong id, string guildName, ulong guildId) | ||
public Emoji(string name, ulong id, string guildName, ulong guildId, string url, bool anim) | ||
{ | ||
this.Name = name; | ||
this.Id = id; | ||
this.GuildName = guildName; | ||
this.GuildId = guildId; | ||
this.Url = url; | ||
this.IsAnimated = anim; | ||
} | ||
|
||
public Uri GetUri() | ||
=> new Uri($"https://cdn.discordapp.com/emojis/{this.Id}.png"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters