mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
documentation
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
/**
|
||||
* 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];
|
||||
|
||||
Reference in New Issue
Block a user