How painful is a cystoscopy?
The NHS says a flexible cystoscopy uses a local anaesthetic gel to numb the area around the urethra, and a rigid one is done with a general or spinal anaesthetic. Afterwards it may hurt to pass urine for a few days.
Source: NHS: how a cystoscopy is done