Error with discord subcommand type

Why it give me this error? ————————————————————————————————— [ AntiCrash ] : Uncaught Exception/Catch ————————————————————————————————— DiscordAPIError[50035]: Invalid Form Body 14.options[0].type[NUMBER_TYPE_COERCE]: Value "STRING" is not int. 33.options[2].type[NUMBER_TYPE_COERCE]: Value "CHANNEL" is not int.—— [
4 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Killer Boss Original
name: 'confess', description: 'send an anonimous confession', beta: false, premium: false, private: false, userPermissions: [], botPermissions: [], options: [ { name: 'text', description: 'confess', type: ApplicationCommandOptionType.String, required: true, }, ],
Squid
Squid2y ago
Is your file saved? That code does not match the error
Killer Boss Original
what is the error cause? ohh i found the error