Remove useless SecretKey class

This commit is contained in:
Amish Shah
2017-10-26 14:02:44 +01:00
parent 3e3e6f9af7
commit ac0cc9a009
5 changed files with 7 additions and 22 deletions

View File

@@ -148,7 +148,7 @@ class VoiceReceiver extends EventEmitter {
handlePacket(msg, user) {
msg.copy(nonce, 0, 0, 12);
let data = secretbox.methods.open(msg.slice(12), nonce, this.voiceConnection.authentication.secretKey.key);
let data = secretbox.methods.open(msg.slice(12), nonce, this.voiceConnection.authentication.secretKey);
if (!data) {
/**
* Emitted whenever a voice packet experiences a problem.