Raillery is a mode of speaking in favor of one's wit at the expense of one's better nature.
or simply: