fix(StreamDispatcher): forward error created by AudioPlayer.play()

This commit is contained in:
DevAndromeda 2021-08-12 16:11:44 +05:45
parent 065e028717
commit 1fc810bce5
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6

View file

@ -195,7 +195,7 @@ class StreamDispatcher extends EventEmitter<VoiceEvents> {
try {
this.audioPlayer.play(resource);
} catch(e) {
} catch (e) {
this.emit("error", e as AudioPlayerError);
}