fix(emojiinfo): added group to the emojiinfo string
This commit is contained in:
parent
bc9bc53967
commit
d65d04fa7a
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue