How to make an attachment from an http response
I'm making an http request with
await fetch(imageUrl) and would like to turn that into an Attachment for use in an embed thumbnail. What is the most efficient way to do that? I'm kinda struggling with streams and buffers.