discord.utils.get(user.server.roles code example Example: How to create role discord.py guild = ctx.guild await guild.create_role(name="role name")