Skip to content

Commit

Permalink
no need to use get_emoji()
Browse files Browse the repository at this point in the history
  • Loading branch information
zmattingly committed May 21, 2023
1 parent fc8ed24 commit 0c79526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/xp.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def determine_level_up_source_details(user, source):
elif isinstance(source, discord.Reaction):
if is_message_channel_unblocked(source.message):
if user is source.message.author:
return f"Receiving a {get_emoji(source.emoji.name)} react on their message at: {source.message.jump_url}"
return f"Receiving a {source.emoji} react on their message at: {source.message.jump_url}"
else:
return f"Adding a {source.emoji} react to the message at: {source.message.jump_url}"
elif isinstance(source, discord.ScheduledEvent):
Expand All @@ -385,7 +385,7 @@ def is_message_channel_unblocked(message: discord.message.Message):
return message.channel.parent.id not in blocked_channels
if isinstance(message.channel, discord.TextChannel):
return message.channel.id not in blocked_channels

return False

# get_user_xp(discord_id)
Expand Down

0 comments on commit 0c79526

Please sign in to comment.