Emergent behaviors of continuous and discrete thermomechanical Cucker–Smale models on general digraphs