11 Replies
- 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!
- ✅
Marked as resolved by OPStarted refreshing application (/) commands.
DiscordAPIError[50035]: Invalid Form Body
0.options[0].name[APPLICATION_COMMAND_INVALID_NAME]: Command name is invalid
at handleErrors (/home/runner/Fortune-Haven/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/runner/Fortune-Haven/node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (/home/runner/Fortune-Haven/node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (/home/runner/Fortune-Haven/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async slashRegister (/home/runner/Fortune-Haven/Slash-Commands.js:27:5) {
requestBody: { files: undefined, json: [ [Object] ] },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '0': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v9/applications/1172706429157773443/guilds/1191941239692595321/commands'
}
fix pls
Option names cannot have uppercase letters
for which?
description?
@AlexCdDg
assetId
has an uppercase letterbut nothing is uppercase tho? lmao
ohh
assetId
yooo
it should be
assetid
thank you man
no problem 👍