Class TrackExceptionEventArgs
The server failed to load or play the current track.
public sealed class TrackExceptionEventArgs : EventArgs
- Inheritance
-
TrackExceptionEventArgs
- Inherited Members
Properties
Exception
The error the server reported, the server's own wire field. Not a local handler failure, exceptions thrown by this client's own handlers arrive as Exception instead.
[JsonPropertyName("exception")]
[JsonInclude]
public ErrorInfo Exception { get; }
Property Value
Remarks
Absorbs a null error the server sends, the setter substitutes a fresh instance, so handlers never read null even when the frame carries one.
GuildId
The guild the player plays in.
[JsonPropertyName("guildId")]
[JsonInclude]
[JsonConverter(typeof(TolerantSnowflakeConverter))]
public ulong GuildId { get; }
Property Value
Track
The track the exception occurred on, null when the player has no track. NodeLink reports it after the track already ended, or when the voice reconnection circuit breaker fires before any track loaded (a voice-level failure, not a track failure).
[JsonPropertyName("track")]
[JsonInclude]
public Track? Track { get; }