1member = message.author
2var = discord.utils.get(message.guild.roles, name = "role name")
3member.add_role(var)
1@client.command(aliases=['make_role'])
2@commands.has_permissions(manage_roles=True) # Check if the user executing the command can manage roles
3async def create_role(ctx, *, name):
4 guild = ctx.guild
5 await guild.create_role(name=name)
6 await ctx.send(f'Role `{name}` has been created')