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•2y ago
Message Not Public
Sign In & Join Server To View
node = 18.13.0
you have invalid command names
How do I fix them?
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
so yeah, my guess was right
they must be lowercase
ok