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
module.exports = {
name: "ping",
description: "Sends a ping request to the bot",
async execute(interaction, client) {
const ping = Math.round(client.ws.ping);
const embed = {
color: 0x009ff,
title: "Ping",
description: `Pong! Bot Latency is ${ping}ms.`,
};
await interaction.reply({ embeds: [embed], ephemeral: false });
},
};
console.log("Ping Responding/Alive");
module.exports = {
name: "ping",
description: "Sends a ping request to the bot",
async execute(interaction, client) {
const ping = Math.round(client.ws.ping);
const embed = {
color: 0x009ff,
title: "Ping",
description: `Pong! Bot Latency is ${ping}ms.`,
};
await interaction.reply({ embeds: [embed], ephemeral: false });
},
};
console.log("Ping Responding/Alive");
7 Replies
d.js toolkit
d.js toolkit7mo 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!
Svitkona
Svitkona7mo ago
can you log the commands before you deploy them and post the log in a paste website and share it here?
Frog
FrogOP7mo ago
yeah ill try
Frog
FrogOP7mo ago
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.
Frog
FrogOP7mo ago
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
Svitkona
Svitkona7mo ago
could you show us how you're deploying your commands?
Frog
FrogOP7mo ago
Gotcha, I'll make the changes when home
Want results from more Discord servers?
Add your server