From 31cd9ad37a0b68e217df3a54fb2a48d21ca8b6af Mon Sep 17 00:00:00 2001 From: PapyrusThePlant Date: Thu, 29 Dec 2016 14:20:09 +0100 Subject: [PATCH] [commands] Bugfix on the teardown function call. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index d23eeb492..b0a86ebd7 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -776,7 +776,7 @@ class Bot(GroupMixin, discord.Client): pass else: try: - func(bot) + func(self) except: pass finally: