Browse Source

Fix passing proxy to interactions and webhooks

pull/10109/head
CoolSpring8 3 years ago
committed by dolfies
parent
commit
6f30c0612b
  1. 4
      discord/webhook/async_.py

4
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,

Loading…
Cancel
Save