© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to make an attachment from an http response - discord.js - Imagine an app
d-Iaa
discord.js - Imagine an app
•
2y ago
•
10 replies
DaniDipp
How to make an attachment from an http response
I
'm making an http request with
await fetch(imageUrl)
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
.
discord.js - Imagine an app
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Delete an Attachment
d-Iaa
discord.js - Imagine an app / djs-questions
3y ago
How to create an attachment without using AttachmentBuilder?
d-Iaa
discord.js - Imagine an app / djs-questions
4y ago