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

validateDiscordOpusHead

export declare function validateDiscordOpusHead(opusHead: Buffer_2): boolean;
export declare function validateDiscordOpusHead(opusHead: Buffer_2): boolean;
Takes an Opus Head, and verifies whether the associated Opus audio is suitable to play in a Discord voice channel.
Returns
true if suitable to play in a Discord voice channel, otherwise false
NameTypeOptionalDescription
opusHeadBuffer_2NoThe Opus Head to validate