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

389
Views
Discord.js - TypeError: message.delete is not a function (while deleting a reply to a command in DM)
await interaction.editReply(`Done! I counted to ${number}`)
                .then(message => setTimeout(() => message.delete(), 3000))

This gives an error while trying to delete a reply message in DM on Discord:

TypeError: message.delete is not a function

However it perfectly works in server channel. I would use deleteReply() but this does not work when you have edited the reply with editReply(). I should note though that deleteReply() for deleting a message that has not being edited works on DM and servers.

about 4 years ago · Juan Pablo Isaza
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!