fix (rroles): Handle unicode emojis on creation.

Fixes a rroles creation issues with pre-existing unicode emojis.
This commit is contained in:
2021-10-24 19:52:06 +03:00
parent d619b0fe17
commit 9b8c952e78

View File

@@ -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 = [