#How to make an attachment from an http response

1 messages · Page 1 of 1 (latest)

velvet roost

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.