The best answer for this question would be:
Indirect characterization.
This means that the personality of character is revealed through their speech, appearance and actions. The line in which the character had spoken has revealed a bit of his character through his intentions in the speech.