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

184
Views
¿Cómo configuro mi bot para que envíe todos los registros a un canal con nombre?
let logschannel = message.guild.channels.cache.find(channel =\> channel.name === 'logs');

Quiero que mi bot envíe registros desde que se une y se va hasta que elimina un mensaje en un canal con un nombre específico. ¿Alguien puede ayudar?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Cambie =/> a => Y luego, consulte esto: https://discord.js.org/#/docs/discord.js/stable/typedef/WSEventType

Probablemente le gustaría ejecutar su código con cada evento del gremio en el enlace de documentos anterior.

about 4 years ago · Juan Pablo Isaza Report

0

Obtuvo un código incorrecto en su código dado, que es el =\> para hacer esto, primero debe encontrar el canal, sí, lo hizo bien . Solo necesita cambiar =\> a => .

Ahora, cuando haya terminado de cambiar eso, todo lo que necesita hacer es llamar a logschannel

 let logschannel = message.guild.channels.cache.find(channel => channel.name === 'logs'); loschannel.send({content: "your content"})

también se puede hacer con incrustaciones.

 let logschannel = message.guild.channels.cache.find(channel => channel.name === 'logs'); logschannel.send({embeds: [your_embed_name]});
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!