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

356
Views
Discord Api Se deben proporcionar intentos válidos para el Cliente, pero el código no funciona

configuré el

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

para mi bot discord.js.

Pero ahora solo recibo el mensaje de error:

No capturado c:\Usuarios\niko\Documentos\bot\recepcionista\index.js:8

La línea 8 en mi index.js es esta:

 const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

const { Client, Intents, MessageEmbed, Presence, Collection, Interaction } = require ('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
about 4 years ago · Juan Pablo Isaza Report

0

elimine la primera línea del código que dice:

 const Discord = require('discord.js')

y también elimine la tercera línea del código que sigue:

 const client= new Discord.Client()

porque está declarando al cliente con las siguientes intenciones después de declarar el prefijo . Y también eliminar

 const bot = client
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!