bot won't make commands and gives weird errors but still comes online

This is the error i get: [Error_Handling] :: Unhandled Rejection/Catch DiscordAPIError: Invalid Form Body name: Command name is invalid at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14) at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control (0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18) at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 { method: 'put', path: '/applications/1066423230291771494/guilds/1061077499834011658/commands', code: 50035, httpStatus: 400, requestData: { json: [ [Object], [Object], [Object], [Object], [Object], [Object] ], files: [] } } Promise { <rejected> DiscordAPIError: Invalid Form Body name: Command name is invalid at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14) at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18) at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 { method: 'put', path: '/applications/1066423230291771494/guilds/1061077499834011658/commands', code: 50035, httpStatus: 400, requestData: { json: [Array], files: [] } } } [Error_Handling] :: Unhandled Rejection/Catch DiscordAPIError: Invalid Form Body name: Command name is invalid at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14) at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18) at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 { method: 'put', path: '/applications/1066423230291771494/guilds/1061077499834011658/commands', code: 50035, httpStatus: 400, requestData: { json: [ [Object], [Object], [Object], [Object], [Object], [Object] ], files: [] } } Promise { <rejected> DiscordAPIError: Invalid Form Body name: Command name is invalid at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14) at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18) at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 { method: 'put', path: '/applications/1066423230291771494/guilds/1061077499834011658/commands', code: 50035, httpStatus: 400, requestData: { json: [Array], files: [] } } }
8 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
node = 18.13.0
Deimoss
Deimoss2y ago
you have invalid command names
Awashcard0
Awashcard0OP2y ago
How do I fix them?
Deimoss
Deimoss2y ago
the most common thing people do is use capital leters in command names which you can't do, they have to be lower case but i don't know your command names so it's just a guess
Awashcard0
Awashcard0OP2y ago
Deimoss
Deimoss2y ago
so yeah, my guess was right they must be lowercase
Awashcard0
Awashcard0OP2y ago
ok
Want results from more Discord servers?
Add your server