Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

280
Visualizações
How do I get the voice channel bitrate using Discord.js?

I'm making a music bot and I wanted it to send an embed message with some details about the music and the voice channel itself but I can't figure out how to make it send the bitrate of the voice channel. I've read the documentation and there's various parts where .bitrate shows up but for some reason every time I tried something like insert class here.bitrate I get this error: Cannot read properties of undefined (reading 'bitrate').

Here's my code:

    .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"}`}
                    )
            ]
        })
    )

Thanks in advance! (Sorry if there's already a similar question or if you had a stroke reading this. English is my fourth language and thus I still don't have a good vocabulary).

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda