Add VoiceConnection#dispatcher

This commit is contained in:
Amish Shah
2017-04-12 20:36:03 +01:00
parent 36c03909dd
commit dce8e83465

View File

@@ -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