mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
17 lines
302 B
JavaScript
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;
|