Icicle
Icicle
DIAdiscord.js - Imagine an app
Created by Icicle on 10/30/2023 in #djs-questions
Why isnt a public endpoint needed on discord.js ?
When developing using discord api (without discord.js library) by itself, per their guides, a public url is needed so the requests can be sent. This is done by either using glitch or ngrok to expose your localhost via tunneling. My question is: Why when using discord.js a public endpoint isnt needed and you can run the bot locally without the need to expose your localhost ? How does their API connect to your localhost ? I have asked this on discord developers but im probably too dumb to understand the answers I got.
2 replies