how to apply role to discord member discord.py rewrite code example
Example 1: how to change role permissions in discord.py
permissions = discord.Permissions()
permissions.update(kick_members = False)
await role.edit(reason = None, colour = discord.Colour.blue(), permissions=permissions)
Example 2: how to delete role discord py rewrite
@client.command(name="delete_role", pass_context=True)
async def delete_role(ctx, role_name):
role_object = discord.utils.get(ctx.message.guild.roles, name=role_name)
await role_object.delete()