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 68dd6531..ecd35edd 100644
--- a/discord/webhook.py
+++ b/discord/webhook.py
@@ -141,7 +141,7 @@ class AsyncWebhookAdapter(WebhookAdapter):
def __init__(self, session):
self.session = session
- self.loop = session.loop
+ self.loop = asyncio.get_event_loop()
async def request(self, verb, url, payload=None, multipart=None):
headers = {}