Using d.js from a web backend

My specific use case is that I want to be able to perform simple actions that don't require the gateway from a web backend using a higher level library like d.js. Is it easy to use discord.js to create a bot without the gateway enabled? I just want a nice way to send messages using a bot user without running a full bot. I would like to control some simple bot tasks from a web backend, but I'm not sure if this is easy to do or even makes sense
2 Replies
d.js toolkit
d.js toolkit16mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Henry
HenryOP16mo ago
Beautiful, must not have been googling the right thing Yeah I'm running webhooks right now, but I need to be able to send dms and maybe in the future create threads, which are a little bit more than webhooks offer atm I believe It will be in response to a web event, e.g. you hit a button on the web portal and it sends someone related a dm Right now I'm allowing users to register their own webhooks to receive these events, but user feedback is that its a little heavy and doesn't do a good job looping in both parties Its not sending just anybody a dm for no reason, they've signed up for the service and enrolled in a way that they would explicitly want to receive the dm I might be new here but don't worry, I've been writing Discord bots almost as long as the API has existed Appreciate the concern though, easy to misuse the API
Want results from more Discord servers?
Add your server