diff --git a/src/services/player.ts b/src/services/player.ts index 9568ce0..33cb4c2 100644 --- a/src/services/player.ts +++ b/src/services/player.ts @@ -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 {