fix(emojiinfo): added group to the emojiinfo string

This commit is contained in:
Seaswimmer 2024-05-08 15:40:58 -04:00
parent bc9bc53967
commit d65d04fa7a
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -74,16 +74,19 @@ class EmojiInfo(commands.Cog):
markdown = f"`<{'a' if emoji.animated else ''}:{emoji.name}:{emoji.id}>`" markdown = f"`<{'a' if emoji.animated else ''}:{emoji.name}:{emoji.id}>`"
name = f"{bold('Name:')} {emoji.name}\n" name = f"{bold('Name:')} {emoji.name}\n"
aliases = "" aliases = ""
group = ""
else: else:
emoji_id = "" emoji_id = ""
markdown = f"`{emoji}`" markdown = f"`{emoji}`"
name = f"{bold('Name:')} {emoji.aliases.pop(0)}\n" name = f"{bold('Name:')} {emoji.aliases.pop(0)}\n"
aliases = f"{bold('Aliases:')} {', '.join(emoji.aliases)}\n" if emoji.aliases else "" aliases = f"{bold('Aliases:')} {', '.join(emoji.aliases)}\n" if emoji.aliases else ""
group = f"{bold('Group:')} {emoji.group}\n"
string: str = ( string: str = (
f"{name}" f"{name}"
f"{emoji_id}" f"{emoji_id}"
f"{bold('Native:')} {emoji.is_unicode_emoji()}\n" f"{bold('Native:')} {emoji.is_unicode_emoji()}\n"
f"{group}"
f"{aliases}" f"{aliases}"
f"{bold('Animated:')} {emoji.animated}\n" f"{bold('Animated:')} {emoji.animated}\n"
f"{bold('Markdown:')} {markdown}\n" f"{bold('Markdown:')} {markdown}\n"