My code is:
@client.event
async def on_raw_reaction_add(payload):
message_id = payload.message_id
if message_id == 768549092674502666:
if payload.emoji.name == 'white_check_mark':
role = '<:Member:765291826151555104>'
await member.add_role(role)
and i'm getting no results from the debugger or except when the bot adds a reaction or logs on which are other code completely inaccosiated with this part of the code.
member
? – Guimoutemember
not the role. Is it defined earlier in your code? – Guimoute