diff options
| author | 2020-10-02 17:25:49 +0530 | |
|---|---|---|
| committer | 2020-10-02 17:25:49 +0530 | |
| commit | e9de05b77f886dffacca9cdee53dd1a424913fb9 (patch) | |
| tree | 4242297c03f1858e8bc43ba92c7f5157f85c35cf | |
| parent | added logging (diff) | |
added ctx annotation
| -rw-r--r-- | bot/exts/evergreen/emoji_count.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/emoji_count.py b/bot/exts/evergreen/emoji_count.py index a90c1b7d..fa0879ae 100644 --- a/bot/exts/evergreen/emoji_count.py +++ b/bot/exts/evergreen/emoji_count.py @@ -39,7 +39,7 @@ class EmojiCount(commands.Cog): return embed @staticmethod - def generate_invalid_embed(ctx) -> discord.Embed: + def generate_invalid_embed(ctx: commands.Context) -> discord.Embed: """Genrates error embed.""" embed = discord.Embed() embed.color = Colours.soft_red @@ -52,7 +52,7 @@ class EmojiCount(commands.Cog): log.trace("Error embed sent") return embed - def emoji_list(self, ctx, emojis: dict) -> Dict: + def emoji_list(self, ctx: commands.Context, emojis: dict) -> Dict: """Genrates dictionary of emojis given by the user.""" for emoji in ctx.guild.emojis: for key, value in emojis.items(): @@ -62,7 +62,7 @@ class EmojiCount(commands.Cog): return emojis @commands.command(name="ec") - async def ec(self, ctx, *, emoji: str = None) -> Optional[str]: + async def ec(self, ctx: commands.Context, *, emoji: str = None) -> Optional[str]: """Returns embed with emoji category and info given by user.""" emoji_dict = {} for a in ctx.guild.emojis: |