title: How to edit an embed with your bot Discord.js?
body: <p>How can I edit an sent embed with my bot? First I contructed an embed:</p>
  
  <pre class="lang-js prettyprint-override"><code>const countdownEmbed = {
  color: 0x0099ff,
  title:('Countdown'),
  author: {
      name:`${user_name}`,
      icon_url: `${user_pfp}`,
  },
  description: 'Your countdown starts in **3 seconds**',
  thumbnail: {
      url: `${client_pfp}`,
  },
  timestamp: new Date(),
  footer: {
      text: `© ${client_name}`, 
      icon_url: `${client_pfp}`,
  },
  };
  </code></pre>
  
  <p>Then I made a new embed:</p>
  
  <pre class="lang-js prettyprint-override"><code>const countdownEmbed2 = {
      title:("New title!"),
      description: 'Your countdown starts in **2 seconds**',
  };
  </code></pre>
  
  <p>After creating the "updated" embed I tried to send the message and then edit it after a second:</p>
  
  <pre class="lang-js prettyprint-override"><code>message.channel.send({ embed: countdownEmbed })
  .then((msg)=&gt; {
      setTimeout(function(){
          msg.edit(countdownEmbed2);
      }, 1000)
  });
  </code></pre>
  
  <p>My code only sends the initial embed and does not edit it. But if I change the <code>CountEmbed2</code> in <code>msg.edit(countdownEmbed2)</code> to a string, it will edit the message itself in Discord, but not the embed. Is there a way to fix this? Or is there an easier way to edit an embed?</p>