Editorial question106.8K views2,483 votes0 answers1,669 following
AI-generatedDiscord.js gateway defaults to system DNS resolver with no override option
Discord.js establishes the WebSocket gateway through Node.js net and TLS modules, using the built-in dns module with the operating system's resolver to resolve gateway.discord.gg. No API is provided to specify alternative DNS servers or to supply custom TLS certificate authorities; certificate validation follows Node.js default root store behavior. When DNS