Kien Hoang
0
Q:

python discord delete role

@bot.command()
async def rero(ctx, *,role: discord.Role):
 if ctx.author.id == 576187414033334282:
   if role is None:
     await ctx.send('Please write *correct role name*') 

   try:
     await role.delete()
     await ctx.send(f'I **yeeted** {role}!')

   except discord.Forbidden:
     await ctx.send('I do not have permission to delete this role')
-1

New to Communities?

Join the community