diff options
| author | Rapptz <[email protected]> | 2019-02-23 07:40:00 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-02-23 07:40:00 -0500 |
| commit | 10ed41d8a0c4b99a41ce915685518bef777d3a27 (patch) | |
| tree | 89fb0e7b55826a97b88b2861a601a6a6039818f9 | |
| parent | [commands] Fix attribute access in cogs to commands. (diff) | |
| download | discord.py-10ed41d8a0c4b99a41ce915685518bef777d3a27.tar.xz discord.py-10ed41d8a0c4b99a41ce915685518bef777d3a27.zip | |
[commands] Fix bug with cog bot check once not being unloaded properly.
| -rw-r--r-- | discord/ext/commands/cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index ace94f18..db631423 100644 --- a/discord/ext/commands/cog.py +++ b/discord/ext/commands/cog.py @@ -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() |