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

138
Visualizações
'MODULE_NOT_FOUND' in discord.js v13 audio/music bot

I have this simple Music Bot for me and my friends, but after upgrading to v13 of discord.js some things just don´t work anymore... I already changed some things up just like the discord.js guide tels you to do. Someone got an idea what is wrong here??

const ytdl = require('ytdl-core');
const Music = require('discordjs/voice');

console.log("is this working");

//  PLAYER
 client.on("messageCreate", async message => {

  if(message.content == 'goplay') {
  const url = args[0];
  if(!url) return message.channel.send('no url');


  const stream = ytdl(url, { filter: 'audioonly'});

  const channel = message.member.voice.channel;

  const player = Music.createAudioPlayer();
  const ressource = Music.createAudioResource(stream);

  const connection = Music.joinVoiceChannel({
   channelId: message.member.voice.channel.id,
   guildId: message.channel.guild,
   adapterCreator: message.guild.voiceAdapterCreator,
  });

  player.play(ressource)
  connection.subscribe(player);

  }
});

here is the error message

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

That looks like a package.json error. Make sure you have a package.json created.

Use the command npm init, and fill out the needed information, to have it automatically create everything use npm init -y (and then make sure to install all of your npm packages)

about 4 years ago · Juan Pablo Isaza Relatório
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