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

115
Views
¿Cómo esperar una respuesta al ejecutar un comando?

¿Por qué no está esperando una respuesta? simplemente ejecuta todo el código Alguien me dijo que el filtro es parte de las opciones del recopilador v13, ¿hay alguna forma de hacerlo entonces?

 const target = message.mentions.users.first(); if (!target) return message.reply("you have to mention somebody"); await message.reply( `you proposed to ${target}! Is it **YES** or **NO**?` ); const filter = (m) => m.content.toLowerCase().startsWith("yes") && !m.author.bot && m.author.target; const main = message.guild.channels.resolve("706263571562102835"); main.awaitMessages(filter, { errors: ["time"], max: 1, time: 900000, }); await message.reply( `You e ${target} are now married!` ); }, };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

message.author.target no existe. Creo que lo que quisiste hacer es

 const filter = (m) => m.content.toLowerCase().startsWith("yes") && !m.author.bot && m.author.id == target.id

Esto significa que el filtro solo detectará mensajes que: comiencen con "sí", cuando el autor no sea un bot y cuando la identificación del autor sea la misma que la del objetivo.

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!