title: How do you get the attachments' urls and post them in console discord.js?
body: <p>I am making a bot in discord.js and I am a bit new to javascript so all this is a little bit hard for me. I have tried to figure out many times how to do this but I can't seem to figure it out, I can't even seem to figure it out from watching tutorials /:</p>
  
  <p>Here is my code:</p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = async message =&gt; {
      if (message.attachments.size &gt; 0) {
          console.log(`Attachment sent by ${message.author.tag} &gt;&gt; Url: ${Attachment.url}`)
      } else {
          console.log(`\nCHATLOGS - [${message.guild}] ${message.author.tag}: ${message.content}`);
      }
  };
  
  </code></pre>
  
  <p>I am also getting this error: "ReferenceError: Attachment is not defined" and is occurring at line 3</p>