Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to delete role discord py rewrite

@client.command(name="delete_role", pass_context=True)
async def delete_role(ctx, role_name):
    #find role object
    role_object = discord.utils.get(ctx.message.guild.roles, name=role_name)
    #delete role
    await role_object.delete()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #role #discord #py #rewrite
ADD COMMENT
Topic
Name
7+1 =