| @@ -6,6 +6,14 @@ | |||||
| public class Emoji : IEmote | public class Emoji : IEmote | ||||
| { | { | ||||
| // TODO: need to constrain this to unicode-only emojis somehow | // TODO: need to constrain this to unicode-only emojis somehow | ||||
| /// <summary> | |||||
| /// The unicode representation of this emote. | |||||
| /// </summary> | |||||
| public string Name { get; } | |||||
| public override string ToString() => Name; | |||||
| /// <summary> | /// <summary> | ||||
| /// Creates a unicode emoji. | /// Creates a unicode emoji. | ||||
| /// </summary> | /// </summary> | ||||
| @@ -15,13 +23,6 @@ | |||||
| Name = unicode; | Name = unicode; | ||||
| } | } | ||||
| /// <summary> | |||||
| /// The unicode representation of this emote. | |||||
| /// </summary> | |||||
| public string Name { get; } | |||||
| public override string ToString() => Name; | |||||
| public override bool Equals(object other) | public override bool Equals(object other) | ||||
| { | { | ||||
| if (other == null) return false; | if (other == null) return false; | ||||