mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix: stream dispatcher throwing key error due to missing secretKey
This commit is contained in:
@@ -155,7 +155,8 @@ class VoiceWebSocket extends EventEmitter {
|
||||
onPacket(packet) {
|
||||
switch (packet.op) {
|
||||
case VoiceOPCodes.READY:
|
||||
this.setHeartbeat(packet.d.heartbeat_interval);
|
||||
// *.75 to correct for discord devs taking longer to fix things than i do to release versions
|
||||
this.setHeartbeat(packet.d.heartbeat_interval * 0.75);
|
||||
/**
|
||||
* Emitted once the voice WebSocket receives the ready packet.
|
||||
* @param {Object} packet The received packet
|
||||
|
||||
Reference in New Issue
Block a user