Enum TrackEndReason
Why a track ended.
public enum TrackEndReason
Fields
Cleanup = 4The player was destroyed or the session expired, the client should not start the next track.
Crossfading = 6The track ended in a crossfade, the server already advanced to the successor.
Finished = 0Finished playing, a next track may be started.
Gapless = 5The track ended in a gapless transition, the server already advanced to the successor.
LoadFailed = 1Failed loading, a next track may be started.
Replaced = 3The track was replaced with another one, the client should not start the next track.
Stopped = 2The track was stopped, the client should not start the next track.
Unknown = 7An 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.