Class TrackStartedEventArgs
The server started playing the current track.
public sealed class TrackStartedEventArgs : EventArgs
- Inheritance
-
TrackStartedEventArgs
- Inherited Members
Properties
GuildId
The guild the player plays in.
[JsonPropertyName("guildId")]
[JsonInclude]
[JsonConverter(typeof(TolerantSnowflakeConverter))]
public ulong GuildId { get; }
Property Value
PlayingQuality
The itag of the audio format the track is playing with, NodeLink only.
[JsonPropertyName("playingQuality")]
[JsonInclude]
[JsonConverter(typeof(RoundedInt32Converter))]
public int? PlayingQuality { get; }
Property Value
- int?
Remarks
Non-null only when the source resolved the format to an itag. NodeLink's built-in sources leave it null, they resolve formats to plain strings, tagless objects (SoundCloud's HLS), or none, only custom plugin sources resolve to an itag, which travels here as its number.
A fractional echo rounds like every other integral member.
Track
The track that started.
[JsonPropertyName("track")]
[JsonInclude]
public Track Track { get; }
Property Value
Remarks
Absorbs a null track the server sends, the getter materializes a fresh instance, so handlers never read null even when the frame carries one. The materialized instance is not thread-safe to race on, capture the value once.