Fixed removed song message
This commit is contained in:
		@@ -137,7 +137,7 @@ namespace NadekoBot.Modules.Music.Classes
 | 
			
		||||
 | 
			
		||||
                        var index = playlist.IndexOf(CurrentSong);
 | 
			
		||||
                        if (index != -1)
 | 
			
		||||
                            RemoveSongAt(index);
 | 
			
		||||
                            RemoveSongAt(index, true);
 | 
			
		||||
 | 
			
		||||
                        OnStarted(this, CurrentSong);
 | 
			
		||||
                        await CurrentSong.Play(audioClient, cancelToken);
 | 
			
		||||
@@ -273,14 +273,14 @@ namespace NadekoBot.Modules.Music.Classes
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void RemoveSongAt(int index)
 | 
			
		||||
        public void RemoveSongAt(int index, bool silent = false)
 | 
			
		||||
        {
 | 
			
		||||
            actionQueue.Enqueue(() =>
 | 
			
		||||
            {
 | 
			
		||||
                if (index < 0 || index >= playlist.Count)
 | 
			
		||||
                    return;
 | 
			
		||||
                var song = playlist.ElementAtOrDefault(index);
 | 
			
		||||
                if (playlist.Remove(song))
 | 
			
		||||
                if (playlist.Remove(song) && !silent)
 | 
			
		||||
                {
 | 
			
		||||
                    SongRemoved(song);
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user