fix (rroles): Handle unicode emojis on creation.
Fixes a rroles creation issues with pre-existing unicode emojis.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user