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

190
Views
nodo no funciona al hacer un bot de discordia

Así que quería hacer un bot de discordia y cuando escribí node. en el CMD me dio un error. Mi código está abajo

 const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); const client = new Discord.Client(); client.once('ready', () => { console.log('Better Call Saul!'); }); client.login('The code');

Error:

lanzar nuevo TypeError('CLIENT_MISSING_INTENTS'); ^ TypeError [CLIENT_MISSING_INTENTS]: se deben proporcionar intentos válidos para el cliente. en Client._validateOptions (C:\Users\Uzivatel\Desktop\joe\node_modules\←[4mdiscord.js←[24m\src\client\Client.js:544:13) en el nuevo Cliente (C:\Users\Uzivatel\ Escritorio\joe\node_modules\←[4mdiscord.js←[24m\src\client\Client.js:73:10) en Objeto. (C:\Users\Uzivatel\Desktop\joe\main.js:3:16) ←[90m en Module._compile (node:internal/modules/cjs/loader:1101:14)←[39m ←[90m en Object .Módulo._extensiones..js

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

0

Parece que el problema está aquí:

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

Sólo la primera línea es válida.

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!