Does sending a remote file download the file

When sending a remote file, does discord.js download the file and send it, or does it just send the URL of the file to Discord?
7 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
MrMythical
MrMythical3y ago
iirc when sending an attachment with URL, djs fetches internally, makes it a buffer then sends that
d.js docs
d.js docs3y ago
interface BufferResolvable Data that can be resolved to give a Buffer. This can be: (more...)
mewo
mewoOP3y ago
ic thanks what about images in embeds?
MrMythical
MrMythical3y ago
that's for discord to do itself, djs doesn't fetch for that
mewo
mewoOP3y ago
tyvm
MrMythical
MrMythical3y ago
👍
Want results from more Discord servers?
Add your server