mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 01:05:30 +01:00
Merge branch 'master' into remove
This commit is contained in:
commit
b93e6644b7
|
@ -443,13 +443,17 @@ export default class {
|
|||
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) {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue