Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to make an attachment from an http response - discord.js - Imagine ❄
d-I❄
discord.js - Imagine ❄
•
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 ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,915
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to send a file/attachment from an Attachment option on SlashCommand?
d-I❄
discord.js - Imagine ❄ / djs-questions
17mo ago
Delete an Attachment
d-I❄
discord.js - Imagine ❄ / djs-questions
3y ago
How to create an attachment without using AttachmentBuilder?
d-I❄
discord.js - Imagine ❄ / djs-questions
4y ago