Having discord API errors when refreshing commands
Using 14.14.1 of discord.js
I have my commands in a separate folder and when discord tries to get the "name" and "description" of the command it errors out and doesn't update Error here: DiscordAPIError[50035]: Invalid Form Body
8.description[BASE_TYPE_REQUIRED]: This field is required
at handleErrors (C:\Users\point\OneDrive\Desktop\Catbot V2\node_modules@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (c:\Users\point\OneDrive\Desktop\Catbot V2\lib\internal\process\task_queues.js:95:5)
at async SequentialHandler.runRequest (C:\Users\point\OneDrive\Desktop\Catbot V2\node_modules@discordjs\rest\dist\index.js:1120:23)
at async SequentialHandler.queueRequest (C:\Users\point\OneDrive\Desktop\Catbot V2\node_modules@discordjs\rest\dist\index.js:953:14)
at async _REST.request (C:\Users\point\OneDrive\Desktop\Catbot V2\node_modules@discordjs\rest\dist\index.js:1266:22)
at async refreshCommands (C:\Users\point\OneDrive\Desktop\Catbot V2\catbotv2.js:41:5) {requestBody: {…}, rawError: {…}, code: 50035, status: 400, method: 'PUT', …}
Here is one of my code snippets for the structure
7 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!can you log the commands before you deploy them and post the log in a paste website and share it here?
yeah ill try
Pastebin
debug logs - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
think thats it
i mean it has the name and description stuff, it might not be reciving it correctly but idk
im gonna sleep, its 3 am here and ive got classes in the morning
could you show us how you're deploying your commands?
Gotcha, I'll make the changes when home