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
Errorconstructor(error, resource)
Constructs a new instance of the
AudioPlayerError
className | 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.