I am trying to create a command that deletes a specified role when you type it in. But it doesn't work. I've searched up solutions but only found tutorials in async, and I am using rewrite. Can anyone help me? Here is my code:
@client.command()
async def delrole(ctx, *, name):
await ctx.guild.remove_roles(name)
await ctx.send(f"Succesfully deleted the {name} role")