Skip to content

fix(discord): honor DISCORD_PROXY for bot client#6184

Closed
trickter wants to merge 1 commit into
NousResearch:mainfrom
trickter:fix/discord-proxy
Closed

fix(discord): honor DISCORD_PROXY for bot client#6184
trickter wants to merge 1 commit into
NousResearch:mainfrom
trickter:fix/discord-proxy

Conversation

@trickter

@trickter trickter commented Apr 8, 2026

Copy link
Copy Markdown

Summary

This change makes the Discord adapter honor DISCORD_PROXY, with fallback to HTTPS_PROXY / https_proxy, when
constructing the discord.py bot client.

Why

In proxied environments, Discord gateway connectivity can fail even when other Hermes traffic succeeds. Passing the proxy
explicitly to commands.Bot(...) makes the Discord adapter consistent with the deployment environment.

Change

  • read proxy from DISCORD_PROXY
  • fall back to HTTPS_PROXY / https_proxy
  • pass the proxy into commands.Bot(...)

Notes

This is a minimal, targeted change and does not alter other platform adapters or provider routing.

@teknium1

teknium1 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Superseded by PR #6814 which includes unified proxy support with SOCKS, DISCORD_PROXY env var, and multi-platform coverage. Thanks for the contribution @trickter!

@teknium1 teknium1 closed this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants