From f13a783a06286226a324756bc63f81294563b057 Mon Sep 17 00:00:00 2001 From: ziro Date: Thu, 6 Aug 2020 12:00:31 +0700 Subject: + Tweaking --- cogs/moderator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cogs') diff --git a/cogs/moderator.py b/cogs/moderator.py index 0506c6b..ff910b1 100644 --- a/cogs/moderator.py +++ b/cogs/moderator.py @@ -28,7 +28,7 @@ class Admin(commands.Cog): @commands.command(hidden=True) @commands.has_any_role("Server Moderator","Zi") - async def reload(self, ctx, ext): + async def reload(self, ctx, ext: str=None): await ctx.send(f"Reloading {ext}...") try: self.bot.reload_extension(f'cogs.{ext}') @@ -133,6 +133,6 @@ class Admin(commands.Cog): await asyncio.sleep(min_ban * 60) await ctx.guild.unban(member, reason="timed out") # TODO: Make unban command? - + def setup(bot): bot.add_cog(Admin(bot)) -- cgit v1.2.3