You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When proxy parameters are passed into Client/Bot, they are correctly relayed to HTTPClient and all requests done via HTTPClient (including the websocket connection) use the given proxy parameters correctly.
Webhooks are never given the proxy parameters and never attempt to use them.
Reproduction Steps
Pass proxy and proxy_auth into commands.Bot
Receive an incoming interaction
Attempt to respond via interaction.send
Minimal Reproducible Code
# Taken from a help thread in the Nextcord Discord, https://discord.com/channels/881118111967883295/1181655083306467473PROXY=os.environ.get('https_proxy')
parsed_proxy=urlparse(PROXY)
proxy_url=f"{parsed_proxy.scheme}://{parsed_proxy.hostname}:{parsed_proxy.port}"proxy_auth=BasicAuth(parsed_proxy.username, parsed_proxy.password)
bot=commands.Bot(description=description, intents=intents, proxy=proxy_url, proxy_auth=proxy_auth)
# in a slash commandawaitinteraction.send("xyz")
Summary
When proxy parameters are passed into Client/Bot, they are correctly relayed to HTTPClient and all requests done via HTTPClient (including the websocket connection) use the given proxy parameters correctly.
Webhooks are never given the proxy parameters and never attempt to use them.
Reproduction Steps
proxy
andproxy_auth
intocommands.Bot
interaction.send
Minimal Reproducible Code
Expected Results
The bot responds to the interaction correctly.
Actual Results
The bot doesn't respond to the interaction.
Intents
members, message_content
System Information
Checklist
Additional Context
I made this on the behalf of a Discord user. This was reported in the Nextcord Discord server, https://discord.com/channels/881118111967883295/1181655083306467473
The text was updated successfully, but these errors were encountered: