mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-31 16:10:08 +00:00
16 lines
335 B
JavaScript
16 lines
335 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;
|