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 | |
| parent | f7126da0f0d104e0b64dd3ee5a28aa4f22fc4188 (diff) | |
| download | DLAP-d6aede51ec45b9325b504724051a80c462d2e29c.tar.gz DLAP-d6aede51ec45b9325b504724051a80c462d2e29c.tar.bz2 DLAP-d6aede51ec45b9325b504724051a80c462d2e29c.zip | |
Updated packages (again); Removed temp code
| -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", |
