Search...

AudioPlayerError

declare class AudioPlayerError extends Error 
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.