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.

Constructors

constructor(
error: Error
resource: AudioResource
)

Constructs a new instance of the AudioPlayerError class

readonly
resource : AudioResource

The resource associated with the audio player at the time the error was thrown.