Caused an electrical short in my apartment
Most likely the only damage, if any, was to the (unconnected) lugs at the other end of the cord. If you can't attach the lugs to the terminals in back of the dryer you might be able to snip off what remains of the lugs and wrap the bare wire ends around the terminals.
Most likely the (main) breaker tripped before anything else got really hot.
Check for any deformation or overheating of the cord in the middle or near either end; if you see that you should discard the cord.
The disadvantages of crab apple trees. In summer, the apples are too sour to pick and eat. In winter the birds come and leave dropping all over the place.