doctor8296
DIAdiscord.js - Imagine an app
•Created by doctor8296 on 4/5/2025 in #djs-questions
What is the proper way to use discord.js with proxy server?
I want to run my Discord bot using a different IP address for both HTTP (REST API) and WebSocket (WSS) connections — so that all outbound traffic from the bot is routed through a specific proxy.
So far I have such simple configuration:
But it gives me timeout error (or doesn't output anything):
node version:
v22.11.0
discord.js: ^14.18.0
,
My proxy has http(s) type. It is indeed working. I have successfully requested main discord page through my proxy with https.7 replies