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

179
Views
How to use message.react with embed - Discord.js V13

I want to react to a user's message after sending a command. I tried changing the position of the code, but it's not working.

let channel = message.member.voice.channel;

if (!channel) {

 // This Code was working without using embeds.
 // message.reply(`>>> Please join a voice channel`) && message.react('๐Ÿ™„')


  return message.reply({
    embeds: [
      new MessageEmbed()
        .setColor('#FFA400')
        .setDescription(`>>> Please join a voice channel`)
        // .message.react('๐Ÿ™„')
        .setFooter(
          `Hey ${message.author.username}`,
          message.author.displayAvatarURL({ dynamic: true })
        ),
    ],
  });
}
about 4 years ago ยท Juan Pablo Isaza
1 answers
Answer question

0

Message.react and Message.reply are separate methods. Make sure to put it before your return statement!

if (!channel) {
  message.react('๐Ÿ™„')
  return message.reply({
    embeds: [
      new MessageEmbed()
        .setColor('#FFA400')
        .setDescription(`>>> Please join a voice channel`)
        .setFooter(
          `Hey ${message.author.username}`,
          message.author.displayAvatarURL({ dynamic: true })
        ),
    ],
  });
}
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!