Attachments
do attachments not work? whenever i try one, it returns the error
3 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 OPnpm list discord.js
pepperbot@1.0.0 C:\Users\User\Desktop\VSCode projects\discordjs\pepperbot
├─┬ discord.js-collector@1.8.9
│ └── discord.js@12.5.3
└── discord.js@14.13.0
node -v
v19.0.0
you can't just pass the attachment, you have to send it as a file like this: