Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Baji committed Jul 16, 2024
1 parent c7e00bb commit e0389c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discordai/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
def replace_emoji(emoji_name: str, emoji_map):
emoji = emoji_name.lower()
emoji_id = emoji_map[emoji]["id"]
emoji_name = emoji_map[emoji]["name"]
is_animated = emoji_map[emoji]["is_animated"]
if emoji in emoji_map:
emoji_id = emoji_map[emoji]["id"]
emoji_name = emoji_map[emoji]["name"]
is_animated = emoji_map[emoji]["is_animated"]
return f"<{{'a' if is_animated else ''}}:{{emoji_name}}:{{emoji_id}}>"
else:
return f":{{emoji_name}}:"
Expand Down

0 comments on commit e0389c1

Please sign in to comment.