Joe
Joe
DIAdiscord.js - Imagine an app
Created by Joe on 3/25/2024 in #djs-questions
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?
5 replies