Swelling of eyelids happens because of irritation in the membrane coating that is inside of the eyelid. Wet two tea bags and place them over your eyes.
Many things can cause discharge (blocked tear duct, particles getting into your eye, an infection from another part of an eye). See you doctor immediately.