how to get role by name discord.py 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)