From 9b8c952e78c83e3ca1b5b725b9b0149c5e2d6fff Mon Sep 17 00:00:00 2001 From: Conatum Date: Sun, 24 Oct 2021 19:52:06 +0300 Subject: [PATCH] fix (rroles): Handle unicode emojis on creation. Fixes a rroles creation issues with pre-existing unicode emojis. --- bot/modules/guild_admin/reaction_roles/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/modules/guild_admin/reaction_roles/command.py b/bot/modules/guild_admin/reaction_roles/command.py index c89de8e1..61e4a1ed 100644 --- a/bot/modules/guild_admin/reaction_roles/command.py +++ b/bot/modules/guild_admin/reaction_roles/command.py @@ -732,7 +732,8 @@ async def cmd_reactionroles(ctx, flags): # Add the reactions to the message, if possible existing_reactions = set( - reaction.emoji.name if reaction.emoji.id is None else reaction.emoji.id + reaction.emoji if not reaction.custom_emoji else + (reaction.emoji.name if reaction.emoji.id is None else reaction.emoji.id) for reaction in message.reactions ) missing = [