Does Allah have emotions? Does he feel happy, sad, angry, frustrated?

Reason for asking is I’m a new Muslim and a believer of God and I am studying all the basics for now like the life of all the prophets, then prophet Muhammad and I’m now in the studying of the Imams. In all the books I read, those would have things like “if you do righteous things, you’d please Allah”

Does this mean God have emotions?

Allah does not have emotions. Emotions are physical reactions/dimensions. If He had emotions he would be in need and changes would occur in him. When the Qur’an refers to these emotions, it’s symbolic. God’s happiness means he rewards us, and God’s anger means he disciplines/punishes us.