discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
328 stars 112 forks source link

Discord voice does not work with local files #238

Closed daBack closed 2 years ago

daBack commented 2 years ago

Issue description

createAudioResource('./aSong.mp3') Does not work. The bot just joins and then leaves (because of my on idle).

It does however work with a published file on for example discord: createAudioResource(https://cdn.discordapp.com/attachments/456207/aSong.mp3')

Am I the only one having the same issue? There are no errors, the bot just goes to idle immedietly after joining the channel.

Code sample

No response

@discordjs/voice version

0.7.5

Node.js version

16.3

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

daBack commented 2 years ago

Me being stupid not clicking all the way in on the docs.. Sorry! 👯