discord.py assign role from message.member.role code example
Example: add role discord .py
member = message.author
var = discord.utils.get(message.guild.roles, name = "role name")
member.add_role(var)
member = message.author
var = discord.utils.get(message.guild.roles, name = "role name")
member.add_role(var)