I am developing a little reaction roles bot in discord.py - for this I am trying to use the .wait_for() function with the "reaction_add" parameter. The problem is that I need to get the emoji from the reaction, which is not working as an error is shown:
AttributeError: 'tuple' object has no attribute 'user'
Seemingly there is something wrong with the way I am trying to get the emoji, but I couldn't find the proper way to get the emoji.
interaction = await client.wait_for('reaction_add')
if interaction.emoji == "":
await interaction.user.add_roles(role)