Browse Source

Reorganized properties in Emoji.cs

tags/1.0
RogueException 8 years ago
parent
commit
394e0aa4d1
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      src/Discord.Net.Core/Entities/Emotes/Emoji.cs

+ 8
- 7
src/Discord.Net.Core/Entities/Emotes/Emoji.cs View File

@@ -6,6 +6,14 @@
public class Emoji : IEmote
{
// 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>
/// Creates a unicode emoji.
/// </summary>
@@ -15,13 +23,6 @@
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)
{
if (other == null) return false;


Loading…
Cancel
Save