aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
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):