Home > Blockchain >  how can i solve the problem with slash im discord.js?
how can i solve the problem with slash im discord.js?

Time:08-04

my bot worked until yesterday, but I updated it and put some new commands and now this error appears ,when I click for my bot to start this error appears: Reason: DiscordAPIError[50035]: Invalid Form Body 2.options[0].type[NUMBER_TYPE_COERCE]: Value "integer" is not int. and this appears in all bot slashed commands

here the codes of one of the bot screens:

const { getVoiceConnection } = require("@discordjs/voice");
module.exports = {
name: "volume",
description: "Changes the Volume of the Music",
options: [
{
  name: "volume",
  description: "Then Volume you want to set",
  type: "INTEGER",
  required: true,
},
],
run: async (client, interaction, args, prefix) => {
if (!interaction.member.voice.channelId)
  return interaction
    .reply({
      ephemeral: true,
      content: "           
  • Related