Weird error
i'm not certain why but for some reason whenever i play an audio (in this case, another audio stops abruptly to play another) or i stop the audioplayer altogether, i get this error
everything still works and i could still insert more audio or continue using the music but it's odd that i receive an error like this
is it because i'm not using djs (i use oceanic.js) or is there another reason?
24 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 entirely sure what to do cause this occasionally appears so is it something i should ignore or no?
Could you show the code?
are you at least using discordjs/voice to play audio to discord?
which part(s)?
100%
then show the code you have to play something
to play aresource
uhhh... at least the ones that does the cutting off or any and all parts showing to play aresource?
well we have no idea from the error is coming and the stacktrace doesnt help either
so anything that could help
alr
first pic is a function for the audioresource to use (cause i aint writing all that 5+ times lol), added it here in case you were wondering what
ytdlP()
was
next 3 pics are for when the music plays normally (meaning no cut offs, aka next song in the music queue is played and whatnot)
last 2 pics do the cutting off (to edit the music pitch/tempo or add custom audio filters), i only get the errors from therethe last 5 pics are the only ones that have the aresource in question
ytdlsorry we cant help you with this as it is against youtube TOS and by transition Discord TOS aswell
ah gotcha ok
never knew that
what package would you suggest i use instead of
ytdl
?
So I won't run into further issues?just to clarify, it's not specifically the package that's against tos
it's against tos to stream from youtube to discord
if you choose to continue with what I imagine is a music bot, it's up to you to choose where you play audio from as well as what wrapper to use
alr then.. i'll see what i can do
try shokaku and change to soundcloud or spotify via that
to my knowledge
shokaku
includes a youtube streaming client and therefore is also not something we supportnope it doesnt if u change the platform to soundcloud or spotify
always depends on how u use it
that's the thing, it'd be impossible for us to determine whether it's being "properly used", and therefore it's entirely not something we support
ok
Besides, shoukaku relies on LavaLink, not djs/voice
Those are incompatible
ok i finally figured out why i get that weird error
i switched from ytdl to soundcloud back to back and apparently it was all because i was using the same audioplayer
it seems that i have to create a different one for each new song i want to (abruptly) play to avoid it
using the same one creates the error in question
We still can't provide your support as SoundCloud also doesn't allow you to stream their audio
I managed to solve my issue but wtf them too?
So what can be stream to a voice channel then???
ok..