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

275
Views
¿Cómo obtengo la tasa de bits del canal de voz usando Discord.js?

Estoy creando un bot de música y quería que enviara un mensaje incrustado con algunos detalles sobre la música y el canal de voz en sí, pero no sé cómo hacer que envíe la tasa de bits del canal de voz. He leído la documentación y hay varias partes donde aparece .bitrate, pero por alguna razón cada vez que intento algo como insertar clase aquí.bitrate me sale este error: No se pueden leer las propiedades de undefined (leyendo 'bitrate').

Aquí está mi código:

 .on("playSong", (queue, song) => queue.textChannel.send({ embeds: [ new Discord.MessageEmbed() .setTitle('🎶Reproduciendo🎶') .setDescription(song.name) .setColor('#FF5733') .addFields( { name: 'Mandado por', value: `${song.user}`, inline: true }, { name: 'Duración', value: `${song.formattedDuration}`, inline: true }, { name: 'Queue', value: `${queue.songs.length} canción(es)`, inline: true }, // =======> { name: 'Bitrate', value: `This gets and sends the bitrate of the voice channel the bot is connected to or was called from`, inline: true }, { name: 'Loop', value: `${queue.repeatMode ? (queue.repeatMode === 2 ? "Queue" : "Canción") : "Apagado"}`, inline: true }, { name: 'Autoplay', value: `${queue.autoplay ? "Prendido" : "Apagado"}`, inline: true }, { name: 'Filtros activados actualmente', value: `${queue.filters.join(", ") || "Ninguno"}`} ) ] }) )

¡Gracias por adelantado! (Lo siento si ya hay una pregunta similar o si tuviste un derrame cerebral al leer esto. El inglés es mi cuarto idioma y, por lo tanto, todavía no tengo un buen vocabulario).

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!