mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
[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)
|
||||
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user