title: Getting the URL from a submitted image
body: <p>code with node.js and discord.js:</p>
  
  <pre><code>client.on('message', function(message){
    //  if (message.author.client) return;
      var Attachment = (message.attachments).array();
      console.log(Attachment); //outputs array
      console.log(Attachment.url); //undefined
      console.log(Attachment.MessageAttachment); //undefined
      console.log(Attachment.MessageAttachment['url']); //error
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/JE9JY.png" rel="nofollow noreferrer">output of "console.log(Attachment);"</a></p>
  
  <p>how do i get the string from </p>
  
  <pre><code>[MessageAttachment
    {...,
     url: '..png',
     ...}
  ]
  </code></pre>