aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anubhav <[email protected]>2020-10-03 12:44:32 +0530
committerGravatar GitHub <[email protected]>2020-10-03 12:44:32 +0530
commit33b2c6bb8de14d277709af3a24072d2b2e6e61f9 (patch)
tree09829d94509fb5e1f3358f14a7ce8a42a2accd1a
parentUpdate 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.py9
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"