aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPapyrusThePlant <[email protected]>2016-12-29 14:20:09 +0100
committerRapptz <[email protected]>2017-01-01 01:49:10 -0500
commit31cd9ad37a0b68e217df3a54fb2a48d21ca8b6af (patch)
tree013ca29c6f2522cdb86b8993e5312a92087d3109
parentChunk every guild if it's a user bot. (diff)
downloaddiscord.py-31cd9ad37a0b68e217df3a54fb2a48d21ca8b6af.tar.xz
discord.py-31cd9ad37a0b68e217df3a54fb2a48d21ca8b6af.zip
[commands] Bugfix on the teardown function call.
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index d23eeb49..b0a86ebd 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: