aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-04-06 01:31:03 +0100
committerGitHub <[email protected]>2021-04-05 20:31:03 -0400
commit2ff24a27b593b6b562d61e16e45b525ad8a0276a (patch)
tree73be18e29bce411a14afe2c1ebfcaca456d3f93c /discord/webhook.py
parentRemove fail-safe for retrieving all tasks (diff)
downloaddiscord.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.py2
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):