Closed eugabrielsilva closed 1 year ago
Actually find out that after the "end()" method is called while playing through ytdl, an ERR_STREAM_WRITE_AFTER_END error is thrown. Solved by myself chaning from "end()" to "destroy()" and listening for the "close" event instead of "finish".
Actually the problem was not solved. Listening for the 'close' event makes the music to stop randomly.
Problem solved in newer versions of ytdl and discordjs/voice.
Using discord.js v12.5.3 and Node v16, the StreamDispatcher (when played through ytdl-core-discord) does not properly fire the "finish" event after the "end()" method is called.