Hello Ali, how is your bird doing?
If the detergent was somehing like bleach, or if the bird was completely submerged under the water you would need to go to the vet.
If it was just dawn or fairy, and the bird didn´t go under the water completely a good rinse in clean water and keeping them warm and calm until they dry is usually sufficient.