You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
.\node_modules\discord.js\src\rest\RequestHandler.js:154
throw new DiscordAPIError(request.path, data, request.method, res.status);
^
DiscordAPIError: Invalid Form Body
options[0].name: Command name is invalid
at RequestHandler.execute .\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (.\node_modules\discord.js\src\rest\RequestHandler.js:39:14)
at async Client.<anonymous> (.\app.js:14:3) {
method: 'post',
path: '/applications/<BOT_ID>/commands',
code: 50035,
httpStatus: 400
}
Getting this error:
Using Node.js v16.9.1, npm v7.21.1
Steps to reproduce:
git clone https://github.com/muratvastark/discord-slash-bot
cd ./discord-slash-bot/
npm install
TOKEN
andBOT_ID
in.env.example
.env.example
to.env
npm start
Entire error:
package.json
The text was updated successfully, but these errors were encountered: