Skip to content
Advertisement

Discord.py AttributeError(“‘NoneType’ object has no attribute ‘roles'”)

This bot gives out a role when you click on a reaction in a message, when you delete a reaction, it takes it away, this code worked a year ago and there were no problems, now I run it and get

JavaScript

I tried to look on the Internet and it seems that I have everything right, I don’t understand where I made a mistake, please help

Code:

JavaScript

Advertisement

Answer

JavaScript
Advertisement