title: Discord.js copying another bot's embed
body: <p>I want to copy another bot's embed and resend while only changing the image to a thumbnail instead. I've been able to replace the image with a thumbnail, get the author name and footer, as well as the description field. But I have no idea how to get the fields and values. There are a lot of fields and values in the message I'm trying to copy. Do I need to find out exactly how many there are? Here is what I have so far:</p>
  
  <pre><code>            let url = e.image.url;
              let desc = e.description;
              let avatar = e.author.name;
              //let avaimg = e.icon.url;
              let field = e.fields.value;
              let field2 = e.fields.name;
              let foot = e.footer.text;
  </code></pre>
  
  <p>then</p>
  
  <pre><code>                      embed
                          .setDescription(desc)
                          .setThumbnail(url)
                          .setFooter(foot)
                          .addField(field2, field, true)
                          .setAuthor(avatar)
                        return message.channel.send(embed)
  </code></pre>
  
  <p>and this works, however the fields just say "undefined." So I need a way to get all of the fields and have it repost exactly what it says. Also I'm not sure how to get the author icon. </p>
  
  <p>I hope my question makes sense and I'm sorry if this is a noob question, I am not very experienced with js.</p>