From 6f30c0612b31f47ed7a9d191a9d51a1d36d423a2 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 b5daa35bf..a01602ec4 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -172,7 +172,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,