mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +00:00
Add VoiceConnection#dispatcher
This commit is contained in:
parent
36c03909dd
commit
dce8e83465
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue