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 untrusted user: 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}>`"
name = f"{bold('Name:')} {emoji.name}\n"
aliases = ""
group = ""
else:
emoji_id = ""
markdown = f"`{emoji}`"
name = f"{bold('Name:')} {emoji.aliases.pop(0)}\n"
aliases = f"{bold('Aliases:')} {', '.join(emoji.aliases)}\n" if emoji.aliases else ""
group = f"{bold('Group:')} {emoji.group}\n"
string: str = (
f"{name}"
f"{emoji_id}"
f"{bold('Native:')} {emoji.is_unicode_emoji()}\n"
f"{group}"
f"{aliases}"
f"{bold('Animated:')} {emoji.animated}\n"
f"{bold('Markdown:')} {markdown}\n"