Getting an error when deploying commands
Error Message:
My host runs
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.jsdeploy-commands.js then index.jsindex.js