mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Not all emojis have the animated attr yet hotfix
This commit is contained in:
parent
5a2e51b135
commit
572a3f0341
@ -21,7 +21,7 @@ def parse_emoji(textToParse, guild_id):
|
|||||||
for gemoji in guild_emojis:
|
for gemoji in guild_emojis:
|
||||||
emoji_name = gemoji["name"]
|
emoji_name = gemoji["name"]
|
||||||
emoji_id = gemoji["id"]
|
emoji_id = gemoji["id"]
|
||||||
emoji_animated = gemoji["animated"]
|
emoji_animated = gemoji.get("animated", False)
|
||||||
if emoji_animated:
|
if emoji_animated:
|
||||||
textToParse = textToParse.replace(":{}:".format(emoji_name), "<a:{}:{}>".format(emoji_name, emoji_id))
|
textToParse = textToParse.replace(":{}:".format(emoji_name), "<a:{}:{}>".format(emoji_name, emoji_id))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user