internal Task InternalPlaybackFinishedAsync(TrackFinishData e)
        {
            this.CurrentState.CurrentTrack = default;

            var ea = new TrackFinishEventArgs(this, LavalinkUtilities.DecodeTrack(e.Track), e.Reason);

            return(this._playbackFinished.InvokeAsync(ea));
        }
Beispiel #2
0
        internal Task InternalTrackExceptionAsync(TrackExceptionData e)
        {
            var ea = new TrackExceptionEventArgs(this, e.Error, LavalinkUtilities.DecodeTrack(e.Track));

            return(this._trackException.InvokeAsync(ea));
        }
Beispiel #3
0
        internal Task InternalTrackStuckAsync(TrackStuckData e)
        {
            var ea = new TrackStuckEventArgs(this, e.Threshold, LavalinkUtilities.DecodeTrack(e.Track));

            return(this._trackStuck.InvokeAsync(ea));
        }
        internal Task InternalPlaybackStartedAsync(string track)
        {
            var ea = new TrackStartEventArgs(this, LavalinkUtilities.DecodeTrack(track));

            return(this._playbackStarted.InvokeAsync(ea));
        }