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

AudioPlayerError

export declare class AudioPlayerError extends Error
export declare class AudioPlayerError extends Error
An error emitted by an AudioPlayer. Contains an attached resource to aid with debugging and identifying where the error came from.

Extends

Error
constructor(error, resource)
Constructs a new instance of the AudioPlayerError class
NameTypeOptionalDescription
errorErrorNoNone
resourceAudioResourceNoNone
Readonly
resource:AudioResource
The resource associated with the audio player at the time the error was thrown.