mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
fix: adjust types for typescript upgrade (#11132)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user