Table of Contents

Enum TrackEndReason

Namespace
Nyra.Entities
Assembly
Nyra.dll

Why a track ended.

public enum TrackEndReason

Fields

Cleanup = 4

The player was destroyed or the session expired, the client should not start the next track.

Crossfading = 6

The track ended in a crossfade, the server already advanced to the successor.

Finished = 0

Finished playing, a next track may be started.

Gapless = 5

The track ended in a gapless transition, the server already advanced to the successor.

LoadFailed = 1

Failed loading, a next track may be started.

Replaced = 3

The track was replaced with another one, the client should not start the next track.

Stopped = 2

The track was stopped, the client should not start the next track.

Unknown = 7

An end reason the library does not know, reported by a newer server, whether starting the next track is safe is unknown, treat it conservatively.

Remarks

The first five values are Lavalink's, the next two are NodeLink's, and the last is Nyra's fallback for a reason it does not recognize.