Using a Discord bot from Nextjs Backend

Is it possible to run a discord bot from the backend of a Nextjs application? If so.. any references/guides to help?
4 Replies
d.js toolkit
d.js toolkit12mo 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!
Agadê, o sumido (HD Scripts)
i'm trying to do this too
mallusrgreat
mallusrgreat11mo ago
I found https://npm.im/@discordjs/rest useful, you can just fetch the data yourself. To simplify it, you can use discord-api-types
npm
@discordjs/rest
The REST API for discord.js. Latest version: 2.2.0, last published: 2 months ago. Start using @discordjs/rest in your project by running npm i @discordjs/rest. There are 243 other projects in the npm registry using @discordjs/rest.
NatoshiSakamoto
NatoshiSakamotoOP11mo ago
Yeah this is what i thought. Was just confirming really
Want results from more Discord servers?
Add your server