aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
Diffstat (limited to 'discord/ext')
-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 349e5d0d..d23eeb49 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -311,7 +311,7 @@ class Bot(GroupMixin, discord.Client):
if delete_after is not None:
@asyncio.coroutine
def delete():
- yield from asyncio.sleep(delete_after)
+ yield from asyncio.sleep(delete_after, loop=self.loop)
yield from self.delete_message(msg)
discord.compat.create_task(delete(), loop=self.loop)