discord.py on role received code example
Example: discordpy get role by id
from discord.utils import get
role_id = 123
role = get(guild.roles, id=role_id)
from discord.utils import get
role_id = 123
role = get(guild.roles, id=role_id)