mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Add VoiceReceiver streams
This commit is contained in:
20
src/client/voice/receiver/VoiceReadable.js
Normal file
20
src/client/voice/receiver/VoiceReadable.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const Readable = require('stream').Readable;
|
||||
|
||||
class VoiceReadable extends Readable {
|
||||
constructor() {
|
||||
super();
|
||||
this._packets = [];
|
||||
this.open = true;
|
||||
}
|
||||
|
||||
_read() {
|
||||
}
|
||||
|
||||
$push(d) {
|
||||
if (this.open) {
|
||||
this.push(d);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = VoiceReadable;
|
||||
Reference in New Issue
Block a user