mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Implement Receiver debug events
This commit is contained in:
@@ -50,7 +50,10 @@ class PacketHandler {
|
||||
const stream = this.streams.get(user.id);
|
||||
if (!stream) return;
|
||||
const opusPacket = this.parseBuffer(buffer);
|
||||
if (opusPacket instanceof Error) return;
|
||||
if (opusPacket instanceof Error) {
|
||||
this.emit('error', opusPacket);
|
||||
return;
|
||||
}
|
||||
stream.push(opusPacket);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user