mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor: PresenceUpdate and demuxProbe (#7248)
This commit is contained in:
@@ -48,8 +48,8 @@ export function demuxProbe(
|
||||
): Promise<ProbeInfo> {
|
||||
return new Promise((resolve, reject) => {
|
||||
// Preconditions
|
||||
if (stream.readableObjectMode) reject(new Error('Cannot probe a readable stream in object mode'));
|
||||
if (stream.readableEnded) reject(new Error('Cannot probe a stream that has ended'));
|
||||
if (stream.readableObjectMode) return reject(new Error('Cannot probe a readable stream in object mode'));
|
||||
if (stream.readableEnded) return reject(new Error('Cannot probe a stream that has ended'));
|
||||
|
||||
let readBuffer = Buffer.alloc(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user