mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
* chore: consistency/prettier * chore: rebase * chore: rebase * chore: include typings * fix: include typings file in prettier lint-staged
13 lines
220 B
JavaScript
13 lines
220 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);
|
|
}
|
|
}
|
|
|
|
module.exports = Silence;
|