From dce8e83465b0c3b7d22a7382ec0ad1f9a90b7889 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Wed, 12 Apr 2017 20:36:03 +0100 Subject: [PATCH] Add VoiceConnection#dispatcher --- src/client/voice/VoiceConnection.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index 9aa0aed86..60342ad68 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -116,6 +116,15 @@ class VoiceConnection extends EventEmitter { this.authenticate(); } + /** + * The current stream dispatcher (if any) + * @type {?StreamDispatcher} + * @readonly + */ + get dispatcher() { + return this.player.dispatcher; + } + /** * Sets whether the voice connection should display as "speaking" or not * @param {boolean} value whether or not to speak