diff --git a/emojiinfo/emojiinfo.py b/emojiinfo/emojiinfo.py index 769e093..5706a6f 100644 --- a/emojiinfo/emojiinfo.py +++ b/emojiinfo/emojiinfo.py @@ -7,7 +7,7 @@ from colorthief import ColorThief from red_commons.logging import RedTraceLogger, getLogger from redbot.core import commands from redbot.core.bot import Red -from redbot.core.utils.chat_formatting import humanize_list +from redbot.core.utils.chat_formatting import bold, humanize_list class EmojiInfo(commands.Cog): @@ -60,13 +60,17 @@ class EmojiInfo(commands.Cog): emoji_url = await self.fetch_twemoji(unicode_emoji=emoji.name) else: emoji_url = emoji.url + if emoji.id: + emoji_id = f"{bold("ID:")} `{emoji.id}`\n" + else: + emoji_id = "" string: str = ( - f"Name: {emoji}\n" - f"ID: {emoji.id}\n" if emoji.id else "" - f"Native: {emoji.is_unicode_emoji()}\n" - f"Animated: {emoji.animated}\n" - f"Markdown: `:{emoji.name}:`\n" - f"URL: [Click Here]({emoji_url})" + 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})" ) 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)