diff --git a/src/client/voice/player/AudioPlayer.js b/src/client/voice/player/AudioPlayer.js index 11b611394..bb8094a20 100644 --- a/src/client/voice/player/AudioPlayer.js +++ b/src/client/voice/player/AudioPlayer.js @@ -47,7 +47,15 @@ class AudioPlayer extends EventEmitter { } get currentTranscoder() { - return this.streams.last().transcoder; + return (this.streams.last() || {}).transcoder; + } + + /** + * The current dispatcher + * @type {?StreamDispatcher} + */ + get currentDispatcher() { + return (this.streams.last() || {}).dispatcher; } destroy() {