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