mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-12 21:05:29 +01:00
Merge branch 'master' into remove
This commit is contained in:
commit
b93e6644b7
|
@ -443,13 +443,17 @@ export default class {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.voiceConnection.on(VoiceConnectionStatus.Disconnected, this.onVoiceConnectionDisconnect.bind(this));
|
if (this.voiceConnection.listeners(VoiceConnectionStatus.Disconnected).length === 0) {
|
||||||
|
this.voiceConnection.on(VoiceConnectionStatus.Disconnected, this.onVoiceConnectionDisconnect.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.audioPlayer) {
|
if (!this.audioPlayer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.audioPlayer.on('stateChange', this.onAudioPlayerStateChange.bind(this));
|
if (this.audioPlayer.listeners('stateChange').length === 0) {
|
||||||
|
this.audioPlayer.on('stateChange', this.onAudioPlayerStateChange.bind(this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onVoiceConnectionDisconnect(): void {
|
private onVoiceConnectionDisconnect(): void {
|
||||||
|
|
Loading…
Reference in a new issue