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

210
Views
How to fix Error MODULE_NOT_FOUND using discord.js

I am a beginner programmer who likes to build discord bots. I am Brazilian, so naturally I don't speak English that well. I am building a music bot (my second bot), but it keeps getting a MODULE_NOT_FOUND error, even when my first bot is normal and doesn't get any errors. Here is the code:

const {
    Client,
    Attachment
} = require('discord.js');
const bot = new Client();

const ytdl = require("ytdl-core");


const token = "My token";
const PREFIX = '/';

var version = '1.2';

var servers = {};


bot.on('ready', () => {
    console.log('This bot is online!' + version);

})
about 4 years ago · Juan Pablo Isaza
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!