Nepal was never a British colony. It maintained full sovereignty throughout the British Raj in South Asia (1858–1947).
After the Anglo-Nepalese War (1814–1816), the Treaty of Sugauli ceded some border territories to the East India Company but affirmed Nepal’s independence. Nepal later supplied Gurkha regiments to the British Army under a separate treaty—a relationship of alliance, not subjugation.