title: Discord JS - Downloading an image from attachment
body: <p>Basic thing I just need fixed; wanting to download a file from attachment but i'm not sure how to describe the attachment as an object/file.</p>
  <p>I just have this:</p>
  <pre><code>let jimage = message.attachments.first()
  fs.writeFileSync(`./${jimage.filename}`, jimage)
  </code></pre>
  <p>Only issue is that, for FS's second argument, discord doesn't have a selection for just the file. Reason i'm trying this way is because I took this idea from here:
  <a href="https://stackoverflow.com/questions/49063287/how-to-save-an-image-from-discord-using-discord-bot-node-js">how to save an image from discord using discord bot node js</a>
  But &quot;attachment.file&quot; isn't a real thing. Other threads show just really overly complicated methods with new calls, like something called request, I just wanna do this straight off fs and discord.</p>