heooo
-1
Q:

create a role with discord.py

@client.command(aliases=['make_role'])
@commands.has_permissions(manage_roles=True)
async def create_role(ctx, *, name):
	guild=ctx.guild
	await guild.create_role(name=name)
	await ctx.send(f'Role `{name}` has been created')
2
guild = ctx.guild
await guild.create_role(name = 'role name',  permissions = discord.Permissions(perrmission = True), reason = 'reason')
    
    
###parameters: 
	role (the name of the new role)
	reason ([optional], the reason you created this role)
	perrmisions (the permissions that the role has/gives to the member with it)
	ctx (mainly for 'ctx.guild', can be used to send 
    	reassurance that the role was created. for example:
    	'await ctx.send(f'{role} was created')
0
guild = ctx.guild
await guild.create_role(name="role name")
-1

New to Communities?

Join the community