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

200
Views
El bot de Discord no responde a los mensajes enviados por dms

Configuré todas las intenciones requeridas, incluidos DIRECT_MESSAGES , aunque el evento messageCreate del cliente no parece estar seleccionando el comando y respondí ahora. Verifiqué el bot y el comando sí funciona en el gremio, pero por alguna razón no en dms.

Mi bloque de código

 client.on('messageCreate', (message) => { if (message.author.bot) return; const msg = message const args = message.content.slice(1).split(/ +/) const args2 = message.content.split(/ +/) if (msg.content.toLowerCase() === '!resetverify') { if (!message.author.id === '853322763930828800') return db.set("verifyTicketAmount", 0) message.reply('Cleared') } })
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Asegúrese de tener las intenciones correctas, yo personalmente uso "todas las intenciones" como a continuación

 const bot = new Client({ intents: 131071, partials: ['CHANNEL', 'GUILD_MEMBER', 'GUILD_SCHEDULED_EVENT', 'MESSAGE', 'REACTION', 'USER'] })

Puedes ver todas las intenciones aquí: Intents

o usa 131071 para todos ellos

Los intents actualizados incluyen todos los nuevos intents, 32767 ya no los incluye todos

about 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!