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

188
Visualizações
Discord Bot Crashes

My discord bot errors and crashes when I attempt to play a song named suicidal ft juice wrld (I think) it's the prompt the pops up is there anyway to fix this?

 if (cmd === "play") {
    try {
      if (!message.member.roles.cache.has('958887519146102816') && !message.member.permissions.has("ADMINISTRATOR")) 
    return message.channel.send({ embeds: [noPermissionEmbed] });
    let voiceChannel = message.member.voice.channel;
    if (!voiceChannel) return message.reply(`You Need to Join Voice Channel`);

    let search_Song = args.join(" ");
    if (!search_Song) return message.reply(`Type Song name or Link`);

    let queue = player.createQueue(message.guild.id, {
      metadata: {
        channel: message.channel,
      },
    });

    // verify vc connection
    try {
      if (!queue.connection) await queue.connect(voiceChannel);
    } catch {
      queue.destroy();
      return await message.reply({
        content: "Could not join your voice channel!",
        ephemeral: true,
      });
    }

    let song = await player
      .search(search_Song, {
        requestedBy: message.author,
      })
      .then((x) => x.tracks[0]);

    if (!song) return message.reply(` I cant Find \`${search_Song}\` `);

    queue.play(song);
    message.channel.send({ content: `⏱️ | Loading track **${song.title}**!` });
  } catch(err) {
        message.reply(`awww there was an ${err}`)
      }
}

There error is too long to post it's over 3500 characters long.

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