how to give role to someone discord.py code example
Example 1: add role discord .py
member = message.author
var = discord.utils.get(message.guild.roles, name = "role name")
member.add_role(var)
Example 2: How to create role discord.py
guild = ctx.guild
await guild.create_role(name="role name")