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

310
Views
¿Cómo soluciono el error CLIENT_MISSING_INTENTS?

Empecé a aprender sobre discord.js pero ahora me enfrento a este problema. Intenté googlear un poco pero no pude arreglarlo.

 const Discord = require('discord.js'); // const Discord = require('discord.js'); // using Intents class const client = new Discord.Client(); client.on('message', (msg) => { // Send back a reply when the specific command has been written by a user. if (msg.content === '!hello') { msg.reply('Hello World!'); } }); client.login('my_token');

Este es el error que estoy recibiendo:

ingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo
5 answers
Answer question

0

client = new Discord.Client({intents: 32767})
over 4 years ago · Santiago Trujillo Report

0

Agregar intenciones.

 const { Client, Intents } = require('discord.js'); // Create a new client instance const client = new Client({ intents: [Intents.FLAGS.GUILDS] });

También puede usar la plantilla disponible en los documentos de discordJS. documentos

over 4 years ago · Santiago Trujillo Report

0

Debe actualizar su nodo a V16, solo busque node.js en google e ingrese a su sitio oficial, descargue la configuración desde allí e instálela.

over 4 years ago · Santiago Trujillo Report

0

En su lugar, puede simplemente degradar la versión discord.js escribiendo esto en el shell:

npm i discord.js@12.5.3

La última versión de discord.js no funciona muy bien, así que uso v12, sin script complicado.

over 4 years ago · Santiago Trujillo Report

0

Debe especificar los eventos que desea que reciba su bot mediante intenciones de puerta de enlace.

En lugar de

const client = new Discord.Client();

Utilizar

const client = new Discord.Client({ intents: [Enter intents here] })

Por ejemplo

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

Aquí hay otro enlace útil: https://discord.com/developers/docs/topics/gateway

over 4 years ago · Santiago Trujillo 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!