I had something similar with my duck last week
Mine did have a slight prolapse but the thing hanging out was Dried poo that must have froze first.
I gave mine 4 baths and 4 warm water cloth soaks and we were able to get a bunch of it off. Then the vet was able to sedate her finish cleaning it...