Send video as attachment from url
I'm trying to send a video as an attachment but I'm getting an error
What am I doing wrong?
If I upload from my client itself I see an attachment object that looks like this
Which fields do I need to include?
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP
if I try to include a content type and name I run into
Wheres your actual code? How exactly are you attempting to do this?
The actual code is complex but it should reproduce with
Well that isnt correct, you dont pass an object like that to
files
It can be an AttachmentBuilder, Attachment object you received, or { name: string, attachment: "the url would go here" }
Or you could just pass the URL directly, but not that object
proxyURL, width and height are just parameters discord sends youI see
Ah that did indeed work
Tysm 🙏