Error with a invalid form body

I keep getting this error
There was an error: DiscordAPIError[50035]: Invalid Form Body
name[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 32 in length.
There was an error: DiscordAPIError[50035]: Invalid Form Body
name[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 32 in length.
And this is my code below:
module.exports = {
name: 'ping',
description: 'Pong!',
// devOnly: Boolean,
testOnly: true,
// options: Object[],
// deleted: Boolean,

callback: (client, interaction) => {
interaction.reply(`Pong! ${client.ws.ping}ms`);
},
};
module.exports = {
name: 'ping',
description: 'Pong!',
// devOnly: Boolean,
testOnly: true,
// options: Object[],
// deleted: Boolean,

callback: (client, interaction) => {
interaction.reply(`Pong! ${client.ws.ping}ms`);
},
};
I've tried almost everything trying to fix this error but I can't seem to get it to work?
3 Replies
d.js toolkit
d.js toolkit9mo 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! - Marked as resolved by staff
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Joe
JoeOP9mo ago
Oh didnt even see that
Want results from more Discord servers?
Add your server