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

239
Views
'messageCreate' sigue disparando cuando se adjunta una imagen al mensaje
client.on('messageCreate', message => { if (message.author.id === client.user.id) return; if (message.author.bot) return; var findChannel = message.guild.channels.cache.find(ch => ch.name === "temp-channel"); if(message.channel === findChannel) { if(message.attachments.size > 0) { var playerPoints = db.get(`${message.author.id}_points`); if (!playerPoints) { db.set(`${message.author.id}_points`, 1); } else { db.add(`${message.author.id}_points`, 1); } message.reply(`**+1 Game Point**, you now have **${db.get(`${message.author.id}_points`)}** points`) } } })

En su mayor parte, funciona. Pero el problema es que cuando se envía un mensaje con una imagen, responde repetidamente al autor del mensaje sin parar. ¿Qué he hecho mal aquí?

He estado en discord.js v12 durante años, pero v13 cambió demasiado.

He intentado varias formas de evitar que el bot responda repetidamente al autor, pero no funciona.

about 4 years ago · Juan Pablo Isaza
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!