Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Cuerpo de formulario no válido de Discord.js: el valor "voiceChannel" no es snofwlake

Estoy tratando de codificar un bot de música, y codifiqué un sistema que entiende si el canal para unirse es válido o no, pero cuando ingreso un canal no válido, el bot falla y me da este error: Invalid form body, channel_id: Value "args[0]" is not snowflake . ¿Que puedo hacer? Código:

 module.exports = { name: "join", aliases: ["j", "move"], async execute (client, message, args, Discord) { let voiceChannel = message.member.voice.channel; if (args[0]) { voiceChannel = await client.channels.fetch(args[0]); if (!Discord.Constants.VoiceBasedChannelTypes.includes(voiceChannel?.type)) { return message.reply(`Sadly, ${args[0]} is kinda not a valid voice channel :(`); } } if (!voiceChannel) return message.reply("You have to be in a voice channel you dummy! 😳👉👈"); client.distube.voices.join(voiceChannel); } }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!