From 10ed41d8a0c4b99a41ce915685518bef777d3a27 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 23 Feb 2019 07:40:00 -0500 Subject: [PATCH] [commands] Fix bug with cog bot check once not being unloaded properly. --- discord/ext/commands/cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index ace94f183..db6314232 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()