voice: fix receiver null on immediate voiceStateUpdate

This commit is contained in:
Amish Shah
2018-11-15 21:38:02 +00:00
parent 3418b5a1a2
commit 2d68e837e5
3 changed files with 3 additions and 3 deletions

View File

@@ -108,6 +108,8 @@ class VoiceConnectionUDPClient extends EventEmitter {
},
},
});
socket.on('message', buffer => this.voiceConnection.receiver.packets.push(buffer));
});
const blankMessage = Buffer.alloc(70);