Closed retrixe closed 6 years ago
There is another issue where nick
is not defined on member. I can make a pull request to fix this however.
I just ran into the getAudioContext
issue. I fixed it by changing (error, stream) => void
to callbackFunc
, to match the code around it... I'm not sure if that was the intent of the callBackFunc type, but the signatures match.
It does not seem to be the intent of the type in question, and I am guessing the stream argument is either a Buffer or something else. Replacing it with any is against static typing principles, but yes, a temporary fix.
I created #241 to fix this issue.
https://github.com/izy521/discord.io/blob/a65e165c8cbdfc64a69d98e7bc6e25f490469086/typings/index.d.ts#L547
TypeScript is throwing an error saying that error and stream are undefined. If I can know the possible types of
stream
, I could create a pull request to fix this issue. (I assume error is a string?) The documentation does not say much in this regard.