Fix passing proxy to interactions and webhooks

This commit is contained in:
CoolSpring8 2022-07-02 07:27:42 +08:00 committed by GitHub
parent b5392ea0f1
commit b806ce332e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,9 @@ class AsyncWebhookAdapter:
to_send = form_data to_send = form_data
try: 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( _log.debug(
'Webhook ID %s with %s %s has returned status code %s', 'Webhook ID %s with %s %s has returned status code %s',
webhook_id, webhook_id,