[commands] Fix bug with cog bot check once not being unloaded properly.
This commit is contained in:
1 parent
1a0b1dfd29
commit
10ed41d8a0
1 file changed
+1
-1
@@ -324,6 +324,6 @@ class Cog(metaclass=CogMeta):
|
||||
bot.remove_check(self.bot_check)
|
||||
|
||||
if cls.bot_check_once is not Cog.bot_check_once:
|
||||
bot.remove_check(self.bot_check_once)
|
||||
bot.remove_check(self.bot_check_once, call_once=True)
|
||||
finally:
|
||||
self.cog_unload()
|
||||
Reference in new issue
Block a user