AttachmentBuilder and MessagePayloads

I tried to read the source code on attachment builders and the files option for when sending a message but I just don't seem to understand how it works. For example, I did
const att = new AttachmentBuilder(urlToSiteWithMp4, { name: "test.mp4" })

channel.send({ files: [att] });
const att = new AttachmentBuilder(urlToSiteWithMp4, { name: "test.mp4" })

channel.send({ files: [att] });
It took a while to send the attachment and then I remembered I was told that attachments download or something like that. I said I'd like to make a progress bar so I checked the source code to see if theres any functions that create/download the attachment but I seen nothing. How do attachments/the attachmentbuilder work with messagepayload and how would I track its progress till it sends the attachment?
2 Replies
d.js toolkit
d.js toolkit14mo 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.
sexy dark chocolate
Now that I think about it, it seems like it's more to do with rest Feel free to mention me btw, I'm working on something else and I'd like to solve this tonight Alright, I will