discord.js/src/client/voice/util/SecretKey.js
2016-10-02 15:16:54 +01:00

17 lines
349 B
JavaScript

/**
* Represents a Secret Key used in encryption over voice
*/
class SecretKey {
constructor(key) {
/**
* The key used for encryption
* @type {Uint8Array}
*/
this.key = new Uint8Array(new ArrayBuffer(key.length));
for (const index in key) {
this.key[index] = key[index];
}
}
}
module.exports = SecretKey;