Table of Contents

Class SponsorBlockSegmentSkippedEventArgs

Namespace
Nyra.EventArgs
Assembly
Nyra.dll

The node skipped a SponsorBlock segment of the current track.

public sealed class SponsorBlockSegmentSkippedEventArgs : EventArgs
Inheritance
SponsorBlockSegmentSkippedEventArgs
Inherited Members

Remarks

NodeLink only.

Properties

GuildId

The guild the player plays in.

[JsonPropertyName("guildId")]
[JsonInclude]
[JsonConverter(typeof(TolerantSnowflakeConverter))]
public ulong GuildId { get; }

Property Value

ulong

Segment

The segment that was skipped.

[JsonPropertyName("segment")]
[JsonInclude]
public SponsorBlockSegment Segment { get; }

Property Value

SponsorBlockSegment

Remarks

Absorbs a null segment the server sends, the setter substitutes a fresh instance, so handlers never read null even when the frame carries one.

Track

The track playing when the skip seek completed, null only when it was stopped or reset while the seek was in flight.

[JsonPropertyName("track")]
[JsonInclude]
public Track? Track { get; }

Property Value

Track

Remarks

A replacement mid-seek is reported as the replacement, a naturally-ended track can still appear, so attribute the skip by the segment, not by this track.