fix: adjust types for typescript upgrade (#11132)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-10-05 13:43:49 +01:00
committed by GitHub
parent ffbb7b6936
commit 612c49b546
4 changed files with 14 additions and 14 deletions

View File

@@ -134,7 +134,7 @@ export class VoiceReceiver {
* @returns The parsed Opus packet
*/
private parsePacket(buffer: Buffer, mode: string, nonce: Buffer, secretKey: Uint8Array, userId: string) {
let packet = this.decrypt(buffer, mode, nonce, secretKey);
let packet: Buffer = this.decrypt(buffer, mode, nonce, secretKey);
if (!packet) throw new Error('Failed to parse packet');
// Strip decrypted RTP Header Extension if present