fix(bot): strip emoji variation selector from reaction checks (#569)

This commit is contained in:
rladenson 2023-07-18 11:46:55 -06:00 committed by Iris System
parent dc845ea3d7
commit b75e3fe7d3

View file

@ -86,7 +86,7 @@ public class ReactionAdded: IEventHandler<MessageReactionAddEvent>
// 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