diff options
author | 2020-10-03 12:44:32 +0530 | |
---|---|---|
committer | 2020-10-03 12:44:32 +0530 | |
commit | 33b2c6bb8de14d277709af3a24072d2b2e6e61f9 (patch) | |
tree | 09829d94509fb5e1f3358f14a7ce8a42a2accd1a | |
parent | Update bot/exts/evergreen/emoji_count.py (diff) |
Update bot/exts/evergreen/emoji_count.py
Co-authored-by: ks129 <[email protected]>
-rw-r--r-- | bot/exts/evergreen/emoji_count.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bot/exts/evergreen/emoji_count.py b/bot/exts/evergreen/emoji_count.py index b32fd0ed..c8076922 100644 --- a/bot/exts/evergreen/emoji_count.py +++ b/bot/exts/evergreen/emoji_count.py @@ -19,10 +19,11 @@ class EmojiCount(commands.Cog): def embed_builder(self, emoji: dict) -> discord.Embed: """Generates an embed with the emoji names and count.""" - embed = discord.Embed() - embed.color = Colours.orange - embed.title = "Emoji Count" - embed.timestamp = datetime.datetime.utcnow() + embed = discord.Embed( + color=Colours.orange, + title="Emoji Count", + timestamp=datetime.datetime.utcnow() + ) if len(emoji) == 1: for key, value in emoji.items(): embed.description = f"There are **{len(value)}** emojis in the **{key}** category" |