Add EmojiInfo cog #27

Merged
cswimr merged 27 commits from emoji into main 2024-05-08 16:07:30 -04:00
Showing only changes of commit 1ed1eb2681 - Show all commits

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)