Browse Source

fix: Changed Emote equals to not compare emote names (#1316)

In reference to what was discussed in the dnet channel.
tags/2.1.1
Casino Boyale Christopher F 6 years ago
parent
commit
abf3e905f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/Entities/Emotes/Emote.cs

+ 1
- 1
src/Discord.Net.Core/Entities/Emotes/Emote.cs View File

@@ -50,7 +50,7 @@ namespace Discord
var otherEmote = other as Emote;
if (otherEmote == null) return false;

return string.Equals(Name, otherEmote.Name) && Id == otherEmote.Id;
return Id == otherEmote.Id;
}

/// <inheritdoc />


Loading…
Cancel
Save