A machine having a rotor part which has a shaft and having a discharge device, the discharge device comprising a displaceable contact element, which is at least partly accommodated in a guide, for forming an electroconductive sliding contact between a sliding contact surface of the contact element and a shaft contact surface of the shaft, the sliding contact surface being provided for forming the sliding contact, the contact element being electroconductively connected to the guide and/or a retaining element of the machine, and the contact element being prestressed towards the shaft contact surface by means of a spring element, wherein the contact element is at least partly wetted with an oily fluid, wherein the contact element of the discharge device establishing an electric contact with the shaft by means of its sliding contact surface in order to form a sliding contact, and wherein the discharge device is disposed at least partly in a fluid guide, the oily fluid initially flowing into the space between the shaft and the guide and subsequently being discharged via the shaft.