mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
parent
20a030e307
commit
1ddd19dbb9
|
@ -441,14 +441,18 @@ export default class {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.voiceConnection.listeners('disconnect').length === 0) {
|
||||||
this.voiceConnection.on('disconnect', this.onVoiceConnectionDisconnect.bind(this));
|
this.voiceConnection.on('disconnect', this.onVoiceConnectionDisconnect.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.dispatcher) {
|
if (!this.dispatcher) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.dispatcher.listeners('speaking').length === 0) {
|
||||||
this.dispatcher.on('speaking', this.onVoiceConnectionSpeaking.bind(this));
|
this.dispatcher.on('speaking', this.onVoiceConnectionSpeaking.bind(this));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private onVoiceConnectionDisconnect(): void {
|
private onVoiceConnectionDisconnect(): void {
|
||||||
this.disconnect(false);
|
this.disconnect(false);
|
||||||
|
|
Loading…
Reference in a new issue