diff options
| -rw-r--r-- | AudioBackend/VoiceInitialization.js | 8 | ||||
| -rw-r--r-- | package.json | 8 |
2 files changed, 4 insertions, 12 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!'); diff --git a/package.json b/package.json index e4f5503..a8f7379 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,10 @@ }, "dependencies": { "@discordjs/opus": "^0.9.0", - "@discordjs/rest": "^1.3.0", - "@discordjs/voice": "^0.14.0", - "discord-api-types": "^0.37.15", - "discord.js": "^14.7.1", + "@discordjs/rest": "^1.6.0", + "@discordjs/voice": "^0.15.0", + "discord-api-types": "^0.37.35", + "discord.js": "^14.8.0", "ffmpeg-static": "^5.1.0", "i18next": "^22.4.5", "i18next-fs-backend": "^2.1.0", |
