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

188
Views
Discord.js envía un mensaje a un canal específico y reacciona ante él

Sé que puedes hacer algo como esto:

 const channel = await client.channels.fetch("Channel id"); channel.send('Message');

Pero, ¿y si quisiera reaccionar al mensaje que envié? Necesitas que el objeto del mensaje reaccione, ¿verdad?

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

0

TextChannel#send devuelve una Promise < Message >. Tendrás que esperar a que se envíe el mensaje para poder reaccionar.

 const channel = await client.channels.fetch('Channel id'); const message = await channel.send('Message'); await message.react('👍'); console.log('Reacted to message.');
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!