diff options
| author | Nadir Chowdhury <[email protected]> | 2021-04-06 01:31:03 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-05 20:31:03 -0400 |
| commit | 2ff24a27b593b6b562d61e16e45b525ad8a0276a (patch) | |
| tree | 73be18e29bce411a14afe2c1ebfcaca456d3f93c /discord/webhook.py | |
| parent | Remove fail-safe for retrieving all tasks (diff) | |
| download | discord.py-2ff24a27b593b6b562d61e16e45b525ad8a0276a.tar.xz discord.py-2ff24a27b593b6b562d61e16e45b525ad8a0276a.zip | |
Use `asyncio.create_task` over `asyncio.ensure_future`
Diffstat (limited to 'discord/webhook.py')
| -rw-r--r-- | discord/webhook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/webhook.py b/discord/webhook.py index 748fed7e..d14ad8fd 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -477,7 +477,7 @@ class WebhookMessage(Message): except HTTPException: pass - asyncio.ensure_future(inner_call(), loop=self._state.loop) + asyncio.create_task(inner_call()) return await asyncio.sleep(0) def delete(self, *, delay=None): |