Hello and thank you for using JustAnswer Health for your concern.
You have bumped and apparently irritated your ulnar nerve. The ulnar nerve travels from the shoulder to the hand and serves to allow movement and sensation in the wrist and hand.
The ulnar nerve is most exposed at the elbow where it is near the skin between two bony prominences. This is what is referred to when people say they 'hit my funny bone' although typically it is just a momentary discomfort. Your degree of discomfort may indicate irritation or damage to the sheath covering the nerve or inflammation (swelling) that is pressing on the nerve.
Treatment includes over the counter pain medications, and ice to the area.
You may want to use a supportive elbow splint to relieve symptoms and allow for rest of the joint.
In cases of a severe level of damage to the nerve, pain medications, neuropathy medications such as gabapentin, or corticosteroid injections may be required. In severe cases surgery may be needed and physical therapy for rehabilitation.
If your injury was mild, you will notice symptoms resolving daily as the swelling in the tissues around the nerve decreases.
In your case, you may want to try using a medication like Alieve or naprosyn (if you have no other contraindications in taking these medications) ice and rest and see if there is significant improvement over the next few days.
If no improvement, please see your physician.
You may also choose of course to be evaluated sooner, if your pain and ability to function is significantly restricting your ability to function.
I am standing by in case you have additional questions.