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

442
Views
Discord JS - delete a reply message

I'm trying to delete certain message with certain event like this:

await interaction.reply({ content: `content` })
            .then(message => {
                console.log(message);
                client.on('messageDelete', async () => {
                    await message.delete();
                });
            });

But I get undefined in a console.log as a message. What is wrong? I already done the message delition with .then() and it worked, but now something is wrong. Maybe because it is reply, not just plain message?

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

0

You can delete a reply to an interaction by using deleteReply()

// Delete the reply to this interaction
interaction.deleteReply()
  .then(console.log)
  .catch(console.error);
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!