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

257
Views
Pretty new to making discord bots, and I need help on an error

I'm on node version 16.9.1 and Discord.js 13.1.0, I am coding on VSC this is my code:

const { Client, Intents } = require('discord.js');
const { token } = require('./config.json');

const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });

client.once('ready', () => {
    console.log('started');
});


client.login(token)

When I tried to start my bot with node . or node main.js it is supposed to output "started" in the console however it does nothing and gives me an error instead. Here is the error:

error I was given

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!