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

230
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo 'enviar')

Estoy escribiendo un bot de discordia con node.js. Quiero que el bot envíe un mensaje automáticamente cuando un miembro se una o abandone el canal. Pero sigo recibiendo un error sobre la función de envío. ¿Me puedes ayudar? [1]: https://i.stack.imgur.com/4URud.png

 module.exports = (client) => { client.on('guildMemberRemove', (member) => { console.log(member); member.guild.channels.cache.get("1234567890912345678").send("byeee"); }); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

member.guild.channels.cache.get("1234567890912345678") no está definido, por lo que no hay función de send() . Debe identificar por qué ese canal no está definido o no existe o encontrar ese canal usando otro método.

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!