mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 02:23:04 +00:00
Fix passing proxy to interactions and webhooks
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user