Getting Started
Yes, free fully functional rest-api discord bot can be made using nextjs 🤯
Installation​
Fill out environment variables​
you can get these on your Discord > Developer > application
NEXT_PUBLIC_CLIENT_APPLICATION_ID=
PUBLIC_KEY=
BOT_TOKEN=
REGISTER_COMMANDS_KEY=
Deploy​
After that you are ready to deploy your project in platforms like vercel
Add Interaction Endpoint​
After deploying you will have your url
then scroll to into "INTERACTIONS ENDPOINT URL"
Example
https://mmv-nextjs-discord-bot-boilerplate.vercel.app/api/discord-bot/interactions
Register Commands​
Open your deployment website, fill and submit the REGISTER_COMMANDS_KEY
on the form UI to register your commands
Alternative way of registering command in Discord Documentation
Invite your discord bot​
Open your deployment website and click "Invite Discord Bot" then your done!