From 06df732c80a56d5134def7cd7c9de78c9a59ee7a Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Wed, 24 Apr 2019 12:08:44 +0300 Subject: [PATCH] incorrect documentation is just :ok_hand: --- cogs/admin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index c29bcd5..928f02d 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -109,7 +109,8 @@ class Admin(Cog): cogs_to_reload = re.findall(r'cogs/([a-z_]*).py[ ]*\|', git_output) for cog in cogs_to_reload: try: - self.bot.reload_extension("cogs." + cog) + self.bot.unload_extension("cogs." + cog) + self.bot.load_extension("cogs." + cog) self.bot.log.info(f'Reloaded ext {cog}') await ctx.send(f':white_check_mark: `{cog}` ' 'successfully reloaded.') @@ -153,7 +154,8 @@ class Admin(Cog): self.lastreload = ext try: - self.bot.reload_extension("cogs." + ext) + self.bot.unload_extension("cogs." + ext) + self.bot.load_extension("cogs." + ext) await self.cog_load_actions(ext) except: await ctx.send(f':x: Cog reloading failed, traceback: '