mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
21 lines
283 B
JavaScript
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;
|