title: Setting a timeout to delete a message embed on discord.js
body: <p>I have a basic ticketing system for a suggestions channel.</p>
  <p>Ideally, when a user does <code>.exesuggest &lt;whatever suggestion they want&gt;</code> (.exe is the bot prefix), I want the bot to reply that the ticket has been sent to staff, i want the bot to delete the user's message, and to delete it's own message after 5 seconds. At the same time, the bot will send a message with the suggestion's author and the suggestion itself into a staff channel.</p>
  <p>At the moment everything is working except for the bot deleting it's own message after 5 seconds.</p>
  <p>Here is my code:</p>
  <pre><code>const Discord = require(&quot;discord.js&quot;)
  
  const channelId = '873769980729106442'
  const check = '✅'
  let registered = false
  
  const registerEvent = client =&gt; {
      if (registered) {
          return
      }
  
      registered = true
  
      client.on('messageReactionAdd', (reaction, user) =&gt; {
          if (user.bot) {
              return
          }
  
          const { message } = reaction
          if (message.channel.id === channelId) {
              message.delete()
          }
      })
  }
  
  module.exports = {
      commands: ['ticket', 'suggest', 'suggestion'],
      minArgs: 1,
      expectedArgs: '&lt;message&gt;',
      callback: (userMessage, arguments, text, client) =&gt; {
          const { guild, member } = userMessage
  
          registerEvent(client)
  
          const channel = guild.channels.cache.get(channelId)
          const newTicketEmbed = new Discord.MessageEmbed()
          .setAuthor(userMessage.author.username)
          .setTitle('Created a new ticket.')
          .setDescription(`&quot;${text}&quot;`)
          .setFooter(`Click the ${check} icon to delete this message.`)
          channel.send(newTicketEmbed).then(ticketMessage =&gt; {
              ticketMessage.react(check)
  
              const replyEmbed = new Discord.MessageEmbed()
              .setDescription(`&lt;@${member.id}&gt; Your ticket has been created! Expect a reply soon!`)
              userMessage.channel.send(replyEmbed)
          })
      }
  }
  </code></pre>
  <p>I have a working command base handler in another file that makes the command work.</p>
  <p>I just need to know exactly how to make that bot's reply in <code>replyEmbed</code> to be deleted after 5 seconds.</p>