abalabahaha / opusscript

JS bindings for libopus 1.4, ported with Emscripten
MIT License
63 stars 19 forks source link

TypeError: Cannot convert "null" to int #12

Closed alaskino closed 4 years ago

alaskino commented 4 years ago

Hello, i was using a guide that i found here on internet for building a Music Bot for my Discord server. When i use the command that i constructed, i'm getting this error (crash too);

{ queue: [ 'https://www.youtube.com/watch?v=4NRXx6U8ABQ' ] } TypeError: Cannot convert "null" to int TypeError: Cannot convert "null" to int

C:\node_modules\opusscript\build\opusscript_native_wasm.js:8 etc.

What should i do? Why i'm getting this error? Thanks for your attention.

abalabahaha commented 4 years ago

This likely isn't a problem with opusscript itself.

I'm guessing you're using discord.js, which threw this error a while ago (discordjs/discord.js#3895). Not quite sure how that was fixed, but you can try asking in their Discord help server.

alaskino commented 4 years ago

Thank you!