diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-03-12 18:12:25 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-03-12 18:14:53 -0400 |
| commit | d6aede51ec45b9325b504724051a80c462d2e29c (patch) | |
| tree | a16bb24d00dbb60fc7404bc5d16732dd90e7f2ed /AudioBackend/VoiceInitialization.js | |
| parent | f7126da0f0d104e0b64dd3ee5a28aa4f22fc4188 (diff) | |
| download | DLAP-d6aede51ec45b9325b504724051a80c462d2e29c.tar.gz DLAP-d6aede51ec45b9325b504724051a80c462d2e29c.tar.bz2 DLAP-d6aede51ec45b9325b504724051a80c462d2e29c.zip | |
Updated packages (again); Removed temp code
Diffstat (limited to 'AudioBackend/VoiceInitialization.js')
| -rw-r--r-- | AudioBackend/VoiceInitialization.js | 8 |
1 files changed, 0 insertions, 8 deletions
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!'); |
