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

391
Views
¿Por qué sigo recibiendo un error al escribir node. o nodo main.js

Seguí un tutorial de Codelyon. Lo seguí antes pero ahora no funciona. No sé si escribí algo mal y no puedo verlo, o si me estoy perdiendo algo completamente diferente. Solo para aclarar, sí, guardé antes de escribir node . y node main.js

Código

 const Discord = require('discord.js'); const client = new Discord.Client(); client.once('ready', () => { console.log('Kilobot is online') }); client.login('bot token');

Error:

TypeError [CLIENT_MISSING_INTENTS]: se deben proporcionar intentos válidos para el cliente.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

AFAIK, en la nueva versión, debe especificar las intenciones antes de realizar cualquier trabajo. Aquí hay un enlace sobre la documentación.

 // Require the necessary discord.js classes const { Client, Intents } = require('discord.js'); const { token } = require('./config.json'); // Create a new client instance const client = new Client({ intents: [Intents.FLAGS.GUILDS] }); // When the client is ready, run this code (only once) client.once('ready', () => { console.log('Ready!'); }); // Login to Discord with your client's token client.login(token);

Y tu pregunta ya está hecha en stackoverflow, aquí

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!