Files
discord.js/src/client/voice/receiver/VoiceReadable.js
2016-08-26 17:34:28 +01:00

21 lines
283 B
JavaScript

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;