Attach or send audios
Hello. I've been wondering if it's possible to send audio files and embed them, either through v2 components or as a message (similar to uploading audio)? I've tried some simpler options, but they upload the file as a link instead of embedding it.
4 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!not sure what simpler options you tried that resulted in a link, but
1. the new components are still sent in a message, so that isn't the distinction I'd make
2. for components v2 you can use a file component
3. you can also just upload the file as an attachment
I would've guessed that this would be one of the simpler options you'd have tried, so if you're having trouble with this, please elaborate
Thanks. What I was trying to say was being able to send audio within an embed or v2 component and have it displayed in "inline audio" format, so the user can play it directly without having to download it. (Is this only possible by sending the content as a file?)
you can use a file component
it will embed the audio player in the same way as if it were an attachment