get role discord py code example
Example 1: discord py get user by id
user = bot.get_user(user_id)
Example 2: discordpy get role by id
from discord.utils import get
role_id = 123
role = get(guild.roles, id=role_id)
user = bot.get_user(user_id)
from discord.utils import get
role_id = 123
role = get(guild.roles, id=role_id)