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

140
Views
El filtro message.channel.awaitmessages() no funciona con una identificación constante

Tengo este comando que se supone que solo acepta entradas de usuario mías. Estoy tratando de usar este código pero no hay nada en la consola.

 me = await client.users.fetch("< my id >") mee = msg mee.author = me let filter = m => m.author.id === mee.author.id msg.channel.awaitMessages(filter, { max: 1, time: 50000, errors: ['time'], }) .then(async (collected) => { mesg = collected.first console.log(mesg.content) })
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Realmente no hay razón para buscar a un usuario si lo único que necesita es su ID, que ya está usando para la fetch en sí.

Lo que está tratando de hacer actualmente (anular al author de un mensaje existente) realmente no tiene mucho sentido.

Su filtro puede (probablemente) simplificarse a lo siguiente.

 let filter = m => m.author.id === "<your id>"
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!