public async Task RemoveSongFromPlaylist( [Summary("The name of the playlist to delete or delete a song from.")] string playlistName, [Summary("The index of the song in the playlist to delete (obtain with `!radio list <playlist-name>` command). If not given, delete the entire playlist.")] int index = -1) { if (string.IsNullOrEmpty(playlistName)) { await ReplyAsync("Please provide a playlist name."); return; } if (index == -1) { //delete the playlist if no song specified await _service.DeleteRadioPlaylist(Context.Message.Author, playlistName); return; } await _service.DeleteRadioSong(Context.Message.Author, playlistName, index); }