15 second pause when initializing Decoder

i am trying to use @discordjs/voice's prism-media package to convert the data into pcm and i noticed that the first time the decoder is constructed it takes around 15.5 seconds and then works just fine. Am i missing something or is it meant to be that slow?
3 Replies
d.js toolkit
d.js toolkit15mo 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! - Marked as resolved by OP
puwa
puwaOP15mo ago
i just realised through debugging that this occurs when it goes to require @discordjs/opus for some reason
No description
puwa
puwaOP15mo ago
okay if i import @discordjs/opus manually before running code it just works fine i guess
Want results from more Discord servers?
Add your server