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.