From b806ce332e824875c45a1665f1dfd44b7a5901f3 Mon Sep 17 00:00:00 2001 From: CoolSpring8 Date: Sat, 2 Jul 2022 07:27:42 +0800 Subject: [PATCH] Fix passing proxy to interactions and webhooks --- discord/webhook/async_.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index d11507fcd..8e002abe9 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -173,7 +173,9 @@ class AsyncWebhookAdapter: to_send = form_data try: - async with session.request(method, url, data=to_send, headers=headers, params=params) as response: + async with session.request( + method, url, data=to_send, headers=headers, params=params, proxy=proxy, proxy_auth=proxy_auth + ) as response: _log.debug( 'Webhook ID %s with %s %s has returned status code %s', webhook_id,