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?
No description
24 Replies
d.js toolkit
d.js toolkit9mo ago
- 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!
XtremeDragonX
XtremeDragonXOP9mo ago
not entirely sure what to do cause this occasionally appears so is it something i should ignore or no?
ThePedroo
ThePedroo9mo ago
Could you show the code?
ShompiFlen
ShompiFlen9mo ago
are you at least using discordjs/voice to play audio to discord?
XtremeDragonX
XtremeDragonXOP9mo ago
which part(s)? 100%
ShompiFlen
ShompiFlen9mo ago
then show the code you have to play something to play aresource
XtremeDragonX
XtremeDragonXOP9mo ago
uhhh... at least the ones that does the cutting off or any and all parts showing to play aresource?
ShompiFlen
ShompiFlen9mo ago
well we have no idea from the error is coming and the stacktrace doesnt help either so anything that could help
XtremeDragonX
XtremeDragonXOP9mo ago
alr
XtremeDragonX
XtremeDragonXOP9mo ago
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 there
No description
No description
No description
No description
No description
No description
XtremeDragonX
XtremeDragonXOP9mo ago
the last 5 pics are the only ones that have the aresource in question
ShompiFlen
ShompiFlen9mo ago
ytdl
sorry we cant help you with this as it is against youtube TOS and by transition Discord TOS aswell
XtremeDragonX
XtremeDragonXOP9mo ago
ah gotcha ok never knew that what package would you suggest i use instead of ytdl? So I won't run into further issues?
duck
duck9mo ago
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
XtremeDragonX
XtremeDragonXOP9mo ago
alr then.. i'll see what i can do
Pragati
Pragati9mo ago
try shokaku and change to soundcloud or spotify via that
duck
duck9mo ago
to my knowledge shokaku includes a youtube streaming client and therefore is also not something we support
Pragati
Pragati9mo ago
nope it doesnt if u change the platform to soundcloud or spotify always depends on how u use it
duck
duck9mo ago
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
Pragati
Pragati9mo ago
ok
ThePedroo
ThePedroo9mo ago
Besides, shoukaku relies on LavaLink, not djs/voice Those are incompatible
XtremeDragonX
XtremeDragonXOP9mo ago
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
ThePedroo
ThePedroo9mo ago
We still can't provide your support as SoundCloud also doesn't allow you to stream their audio
XtremeDragonX
XtremeDragonXOP9mo ago
I managed to solve my issue but wtf them too? So what can be stream to a voice channel then??? ok..
Want results from more Discord servers?
Add your server