title: How to get the URL of an attachment in a message
body: <p>I'm trying to get the URL of any attachments in a message. I can't seem to find a way to do this: whenever I try to run <code>console.log(message.attachments.url)</code>, it just outputs <code>undefined</code>. What am I doing wrong?</p>
  
  <p>I've tried reading the docs and other Stack Overflow questions but nothing worked.</p>
  
  <p>I expect the output to be a URL of the attachment, i.e. <code>'https://cdn.discordapp.com/attachments/serverid/channelid/file.png'</code> However, it just outputs <code>undefined</code>.</p>