Getting an error when deploying commands

Error Message:
Started refreshing 13 application (/) commands.
DiscordAPIError[50035]: Invalid Form Body
10[APPLICATION_COMMANDS_DUPLICATE_NAME]: Application command names must be unique
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1072:23)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:913:14)
at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async /home/container/deploy-commands.js:38:16 {
requestBody: {
files: undefined,
json: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '10': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1099029046265909321/guilds/699776656889479299/commands'
}
Started refreshing 13 application (/) commands.
DiscordAPIError[50035]: Invalid Form Body
10[APPLICATION_COMMANDS_DUPLICATE_NAME]: Application command names must be unique
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1072:23)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:913:14)
at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async /home/container/deploy-commands.js:38:16 {
requestBody: {
files: undefined,
json: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '10': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1099029046265909321/guilds/699776656889479299/commands'
}
My host runs deploy-commands.js then index.js
6 Replies
d.js toolkit
d.js toolkit15mo 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!
SuperPEKKA336
SuperPEKKA336OP15mo ago
all my command names are unique
treble/luna
treble/luna15mo ago
your error disagrees perhaps you have a duplicate option name somewhere
SuperPEKKA336
SuperPEKKA336OP15mo ago
commands/bot/about.js
commands/bot/info.js
commands/bot/ping.js
commands/bot/reload.js

commands/embeds/announcements.js
commands/embeds/embeds.js
commands/embeds/reactionroles.js

commands/moderation/kick.js
commands/moderation/userinfo.js

commands/utility/crew.js
commands/utility/join.js
commands/utility/messgae.js
commands/utility/setserverstatus.js
commands/bot/about.js
commands/bot/info.js
commands/bot/ping.js
commands/bot/reload.js

commands/embeds/announcements.js
commands/embeds/embeds.js
commands/embeds/reactionroles.js

commands/moderation/kick.js
commands/moderation/userinfo.js

commands/utility/crew.js
commands/utility/join.js
commands/utility/messgae.js
commands/utility/setserverstatus.js
which is weird i checked all the command files lemme recheck yeah all have unique names command names all match the file names k so it shows i have 2 /join commands
Squid
Squid15mo ago
search your project directory for the string join and make sure there's only one
SuperPEKKA336
SuperPEKKA336OP15mo ago
k
Want results from more Discord servers?
Add your server