Self-complacency is pleasure accompanied by the idea of oneself as cause.
"Ethics Geometrically Demonstrated". Book by Baruch Spinoza, Part III : On the Origin and Nature of the Emotions, Prop. 51: Note, 1677.

Self-complacency is pleasure accompanied by the idea of oneself as cause.