fetch role in discord.py code example
Example 1: discordpy get role by id
from discord.utils import get
role_id = 123
role = get(guild.roles, id=role_id)
Example 2: How to create role discord.py
guild = ctx.guild
await guild.create_role(name="role name")