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

244
Views
Recibo el error de borrar intentos faltantes al codificar un bot
const Discord = require("discord.js"); const client = new Discord.Client({ ws: { intents: new Discord.Intents(Discord.Intents.ALL) } });

este es un código que requiere todas las intenciones, ¿está mal?

 client.once('ready', () => { console.log('Coleria is online!'); }); const prefix = '*'

puedo ir con este prefijo

 client.on("message", message =>{ if(!message.content.startsWith(prefix) || message.author.bot) return; const args = message.content.slice(prefix.length).split(" "); const command = args.shift().toLowerCase(); if(command === 'sa'){ messageCreate.channel.send('As kardeşim hoşgeldin.'); } }); client.login("my token");
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No deberías usar ws: { intents: new Discord.Intents(Discord.Intents.ALL)}

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

Debe usar este código porque su bot está tratando de encontrar los indicadores GUILDS y GUILD_MESSAGES , y eso es todo lo que necesita usar.

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!