how can i add a role to a person i mention through discord.py via role id?
i tried many commands that came into my search but every command left me with an error which was:
File "C:\Users\mxgak\OneDrive\Documents\Own Coded DC Tools\Stone MM Bot V1\main.py", line 350, in client
await member.add_roles(role)
File "C:\Users\mxgak\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\member.py", line 777, in add_roles
await req(guild_id, user_id, role.id, reason=reason)
^^^^^^^
AttributeError: 'NoneType' object has no attribute 'id'
I know you can use this as example||as a template