From abf3e905f2ef656376636f81c7fc723d728bbcd4 Mon Sep 17 00:00:00 2001 From: Casino Boyale Date: Mon, 3 Jun 2019 18:14:20 +0100 Subject: [PATCH] fix: Changed Emote equals to not compare emote names (#1316) In reference to what was discussed in the dnet channel. --- src/Discord.Net.Core/Entities/Emotes/Emote.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/Emotes/Emote.cs b/src/Discord.Net.Core/Entities/Emotes/Emote.cs index bebd9fa4f6..97fadbcc1b 100644 --- a/src/Discord.Net.Core/Entities/Emotes/Emote.cs +++ b/src/Discord.Net.Core/Entities/Emotes/Emote.cs @@ -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; } ///