[commands] Fix bug with cog bot check once not being unloaded properly.
This commit is contained in:
parent
1a0b1dfd29
commit
10ed41d8a0
@ -324,6 +324,6 @@ class Cog(metaclass=CogMeta):
|
|||||||
bot.remove_check(self.bot_check)
|
bot.remove_check(self.bot_check)
|
||||||
|
|
||||||
if cls.bot_check_once is not Cog.bot_check_once:
|
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:
|
finally:
|
||||||
self.cog_unload()
|
self.cog_unload()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user