For confirmation of diagnosis a picture of the ey would help. It may also be a stye infection of the glands of the eyelid. Usually stye is associated with pain.
Next Steps
The main treatment is hot fomentation atleast 2 to 3 times/ day so that the pores of the gland open up and the secretions can come out. You can also take a pain killer like combiflam to reduce the pain.
Health Tips
It will take nearly 3 to 4 days to resolve completely