Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

314
Vistas
discord bot keeps uploading attachment in a loop. everything else works but the uploading the thumbnail causes an uploading loop. thoughts?

I have used the following code. However for whatever reason it just keeps looping the uploading of the attachment. the music playing portion works just fine but other than that it just attempts to upload the attachment in a loop. does anybody have any idea what is the casue of this?

Thank you in advance

 client.on('messageCreate', async (message) => {
    if (message.content && message.content.toLowerCase() === '!play baka radio') {
        if (!message.member.voice?.channel) return message.channel.send('You need to be a voice channel to execute this command')
              const connection = joinVoiceChannel({
            channelId: message.member.voice.channelId,
            guildId: message.guildId,
            adapterCreator: message.guild.voiceAdapterCreator
        })
    

> ***the code starts a loop and i am not sure what is causing this ***

        const player = createAudioPlayer()
        const resource = createAudioResource('https://nrf1.newradio.it:10328/alfaanime')

        connection.subscribe(player)

        message.channel.send({ content: "Now Playing", embeds: [embed2], files: ['./logo/bkrlogo.png'] }) + player.play(resource) 

    }
})
});


about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda