mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Fix VoiceConnection.speaking not emitting
This commit is contained in:
parent
83bef4ca77
commit
4e6b632d23
1 changed files with 9 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ class VoiceConnection extends EventEmitter {
|
|||
|
||||
constructor(pendingConnection) {
|
||||
super();
|
||||
|
||||
/**
|
||||
* The Voice Manager that instantiated this connection
|
||||
* @type {ClientVoiceManager}
|
||||
|
|
@ -77,6 +78,13 @@ class VoiceConnection extends EventEmitter {
|
|||
*/
|
||||
this.ssrcMap = new Map();
|
||||
|
||||
/**
|
||||
* Whether this connection is ready
|
||||
* @type {boolean}
|
||||
* @private
|
||||
*/
|
||||
this.ready = false;
|
||||
|
||||
/**
|
||||
* Object that wraps contains the `ws` and `udp` sockets of this voice connection
|
||||
* @type {object}
|
||||
|
|
@ -161,6 +169,7 @@ class VoiceConnection extends EventEmitter {
|
|||
* @event VoiceConnection#ready
|
||||
*/
|
||||
this.emit('ready');
|
||||
this.ready = true;
|
||||
});
|
||||
this.sockets.ws.on('speaking', data => {
|
||||
const guild = this.channel.guild;
|
||||
|
|
|
|||
Loading…
Reference in a new issue