discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
328 stars 112 forks source link

Show friendlier error when no encryption packages are installed #128

Closed amishshah closed 3 years ago

amishshah commented 3 years ago

At the moment, if you try to use the library without any encryption packages installed and try to play an audio resource, you get a rather unfriendly error:

TypeError: secretbox.methods.close is not a function

This could definitely be improved!