TrackExceptionEvent
The TrackExceptionEvent is sent by the server to the client if a track playback fails due to an exception.
Structure
Section titled “Structure”| Field | Type | Description |
|---|---|---|
op | string | Always event |
type | string | Always TrackExceptionEvent |
guildId | string | The Discord guild ID |
track | object | The Track that failed |
exception | object | Details about the error |
Exception Object Fields
| Field | Type | Description |
|---|---|---|
message | string | The error message |
severity | string | common, suspicious, or fatal |
cause | string | The cause of the error |
Example Payload
Section titled “Example Payload”{ "op": "event", "type": "TrackExceptionEvent", "guildId": "1234567890", "track": { "encoded": "...", "info": { ... } }, "exception": { "message": "Out of memory", "severity": "fatal", "cause": "Native memory allocation failed" }}