I thought it was the immune system that betrayed type 1 diabetics, not the pancreas. I recall the leading theory (at least used to be) that insulin producing cells had the bad luck to look like a cold virus or some other malicious infection, and after the person contracted a similar looking infection, the body just cleaned up the beta cells, thinking they're also malicious.
You're right that type 1 diabetes has autoimmune origin. The presence of autoantibodies can be used clinically to distinguish it from the other types of diabetes mellitus[1].