fix(emojiinfo): fixed a syntax error

This commit is contained in:
Seaswimmer 2024-05-08 14:35:47 -04:00
parent a02a7ab3d7
commit 1ed1eb2681
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -61,16 +61,16 @@ class EmojiInfo(commands.Cog):
else:
emoji_url = emoji.url
if emoji.id:
emoji_id = f"{bold("ID:")} `{emoji.id}`\n"
emoji_id = f"{bold('ID:')} `{emoji.id}`\n"
else:
emoji_id = ""
string: str = (
f"{bold("Name:")} {emoji}\n"
f"{bold('Name:')} {emoji}\n"
f"{emoji_id}"
f"{bold("Native:")} {emoji.is_unicode_emoji()}\n"
f"{bold("Animated:")} {emoji.animated}\n"
f"{bold("Markdown:")} `:{emoji.name}:`\n"
f"{bold("URL:")} [Click Here]({emoji_url})"
f"{bold('Native:')} {emoji.is_unicode_emoji()}\n"
f"{bold('Animated:')} {emoji.animated}\n"
f"{bold('Markdown:')} `:{emoji.name}:`\n"
f"{bold('URL:')} [Click Here]({emoji_url})"
)
if await ctx.embed_requested():
embed = embed = discord.Embed(title="Emoji Information", description=string, color = await self.fetch_primary_color(emoji_url) or await ctx.embed_color)