From b75e3fe7d30c63ce25a0e34f7deabb47d72ecd55 Mon Sep 17 00:00:00 2001 From: rladenson <78043712+rladenson@users.noreply.github.com> Date: Tue, 18 Jul 2023 11:46:55 -0600 Subject: [PATCH] fix(bot): strip emoji variation selector from reaction checks (#569) --- PluralKit.Bot/Handlers/ReactionAdded.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Handlers/ReactionAdded.cs b/PluralKit.Bot/Handlers/ReactionAdded.cs index 09d5ea0e..db9381a8 100644 --- a/PluralKit.Bot/Handlers/ReactionAdded.cs +++ b/PluralKit.Bot/Handlers/ReactionAdded.cs @@ -86,7 +86,7 @@ public class ReactionAdded: IEventHandler // Proxied messages only exist in guild text channels, so skip checking if we're elsewhere if (!DiscordUtils.IsValidGuildChannel(channel)) return; - switch (evt.Emoji.Name) + switch (evt.Emoji.Name.Split("\U0000fe0f", 2)[0]) { // Message deletion case "\u274C": // Red X