discord.js/src/client/voice/receiver/VoiceReadable.js
2017-06-29 00:43:26 +01:00

17 lines
302 B
JavaScript

const { Readable } = require('stream');
class VoiceReadable extends Readable {
constructor() {
super();
this._packets = [];
this.open = true;
}
_read() {} // eslint-disable-line no-empty-function
_push(d) {
if (this.open) this.push(d);
}
}
module.exports = VoiceReadable;