Using a proxy #109
-
Hello, I've looked into it and you used to be able to use aiohttp rather simply to route discord traffic through a proxy, but it seems they've updated their library and the old way no longer works. Is there an alternative method for routing a discord bot connection through a proxy? This is the old way : basic_auth = BasicAuth(USER_PROXY_LOGIN, USER_PROXY_PASS) cient = discord.Client(connector=connector)` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Looking at the code, the library should still be using the connector you pass to |
Beta Was this translation helpful? Give feedback.
Looking at the code, the library should still be using the connector you pass to
discord.Client()
. Whatever changed there is on aiohttp's side.However, the library has inbuilt proxy support. You can pass
proxy
andproxy_auth
todiscord.Client()
and they'll be passed toaiohttp.ClientSession.request()
.