AudioPlayerError
An error emitted by an AudioPlayer. Contains an attached resource to aid with debugging and identifying where the error came from.
declare class AudioPlayerError extends Error declare class AudioPlayerError extends Error Extends
Errorconstructor(error, resource)
Constructs a new instance of the 
AudioPlayerError class| Name | Type | Optional | Description | 
|---|---|---|---|
| error | Error | No | None | 
| resource | AudioResource | No | None | 
Readonly
The resource associated with the audio player at the time the error was thrown.