mirror of
https://github.com/danbulant/discord.js
synced 2026-06-22 00:02:13 +00:00
15 lines
260 B
JavaScript
15 lines
260 B
JavaScript
'use strict';
|
|
|
|
const { Readable } = require('stream');
|
|
|
|
const SILENCE_FRAME = Buffer.from([0xf8, 0xff, 0xfe]);
|
|
|
|
class Silence extends Readable {
|
|
_read() {
|
|
this.push(SILENCE_FRAME);
|
|
}
|
|
}
|
|
|
|
Silence.SILENCE_FRAME = SILENCE_FRAME;
|
|
|
|
module.exports = Silence;
|