Skip to content

Commit

Permalink
fix: Changed Emote equals to not compare emote names (#1316)
Browse files Browse the repository at this point in the history
In reference to what was discussed in the dnet channel.
  • Loading branch information
k-boyle authored and foxbot committed Jun 3, 2019
1 parent 1f55f01 commit abf3e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.Core/Entities/Emotes/Emote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public override bool Equals(object other)
var otherEmote = other as Emote;
if (otherEmote == null) return false;

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

/// <inheritdoc />
Expand Down

0 comments on commit abf3e90

Please sign in to comment.