From d6aede51ec45b9325b504724051a80c462d2e29c Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 12 Mar 2023 18:12:25 -0400 Subject: Updated packages (again); Removed temp code --- AudioBackend/VoiceInitialization.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'AudioBackend/VoiceInitialization.js') diff --git a/AudioBackend/VoiceInitialization.js b/AudioBackend/VoiceInitialization.js index 3e5e8fa..ae1241b 100644 --- a/AudioBackend/VoiceInitialization.js +++ b/AudioBackend/VoiceInitialization.js @@ -37,14 +37,6 @@ export async function voiceInit(bot) { connection.on(VoiceConnectionStatus.Connecting, () => { console.log(`Connecting to ${channel.name}...`); }); - const networkStateChangeHandler = (oldNetworkState, newNetworkState) => { - const newUdp = Reflect.get(newNetworkState, 'udp'); - clearInterval(newUdp?.keepAliveInterval); - }; - connection.on('stateChange', (oldState, newState) => { - Reflect.get(oldState, 'networking')?.off('stateChange', networkStateChangeHandler); - Reflect.get(newState, 'networking')?.on('stateChange', networkStateChangeHandler); - }); connection.on(VoiceConnectionStatus.Ready, async() => { console.log('Ready to blast some beats!'); -- cgit v1.2.3