Audio Source
Hello i got a question
How can we play an audio with the Source Thing but Without Put The Whole File Path From the C: For exemple to the music we want to play
can we do something bc i need to put it on a server but it wont play bc idk what is the Disk of the server and others things
5 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 OPrelative paths are fine as long as you understand that
fs
uses the current working directory as the base
there's also plenty of ways to resolve relative paths to absolute paths yourself to avoid any confusion (such as the native path
module)Do you know where can i learn the Path Module ?
ho wto use it ?
Thks