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

134
Views
'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 answers
Answer question

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 Report
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!