is there any chance it was bitten/stung by some insect or snake? Please post full details and photo of what your bird looks like now, on the "emergencies, diseases, injuries, cures thread."   Is there any chance another of your birds or animals may have attacked him?
 
For a swelling, I think...