Browse Source

Fix passing proxy to interactions and webhooks

pull/8200/head
CoolSpring8 3 years ago
committed by GitHub
parent
commit
b806ce332e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/webhook/async_.py

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

Loading…
Cancel
Save