You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

demuxProbe

export declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
export declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
Attempt to probe a readable stream to figure out whether it can be demuxed using an Ogg or WebM Opus demuxer.
NameTypeOptionalDescription
streamReadableNoThe readable stream to probe
probeSizenumberYesThe number of bytes to attempt to read before giving up on the probe
validatortypeof validateDiscordOpusHeadYesThe Opus Head validator function