discord.js and deno
Is the voice library supported with Deno?
I am getting a weird error 'sig is not defined' when trying to run the example code from the docs with Deno.
Thanks for the help!
3 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 OPCould you post backtrace?
(Also, I'm unsure if it supports Deno, but mostly likely yes)
That's the thing... I get no stack trace
The bot joins, but before it starts playing anything it just says 'Error: sig is not defined'
I don't have any error handling that could be eating the error so I'm unsure why that happens
I know you said the full code, but that is quite big. I believe this should be everything related to that...
The function is executed in a message create event from the client.
Some context: I am not a beginner programmer, but this is the first time in playing with Deno, so I'm unsure if I'm not making some kind of mistake there.
I used NPM to download the packages.
I am running Deno on a windows host. Using opusscript and ffmpeg-static with the
--allow-all
If you need any more I formation I'd be glad to provide 🙂
Doesn't the TOS disallow re-spreading of content?
Having it for private use should fall under they're TOS if I'm not mistaken
If I'm mistaken, I can just delete this thread 🙂
Hm even though I am the only member there, I guess you are right. That doesn't mean it's for private use.
However the idea of the bit was to actually play MP3s (as a soundboard) ytdl was just me trying to get it to play as I'm unsure if it works with Deno
But I guess I can try playing with an mp3 and if I get the same issue, then open a new thread?
FYI, it was indeed the stupid ytdl haha.
I wanted to use it for simplicity, yet it just caused me issues.
Playing mp3 files seems to work perfectly fine on Deno!
Thanks a bunch!