diff options
| author | Rapptz <[email protected]> | 2016-12-21 00:01:00 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-12-21 00:06:19 -0500 |
| commit | bed2e90e825f9cf90fc1ecbae3f49472de05ad3c (patch) | |
| tree | 655476debe560028148b63ce645aef69f2eeed4c /discord/ext/commands/bot.py | |
| parent | Version bump to v0.16.0. (diff) | |
| download | discord.py-bed2e90e825f9cf90fc1ecbae3f49472de05ad3c.tar.xz discord.py-bed2e90e825f9cf90fc1ecbae3f49472de05ad3c.zip | |
Properly propagate loop. Fixes #420.
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
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) |