#channel.edit not working?

1 messages ยท Page 1 of 1 (latest)

umbral veldt
#
  if ctx.author.id == 952534330897469502:
    message = await ctx.send("Please wait...")
    if status == "Working" or status == "working":
      for channel in ctx.guild.channels:
          if channel.name == "๐ŸŸข-haze-status":
                await message.delete()
                await ctx.send("Haze's status is already working!")
          else:
            if channel.name == "๐Ÿ”ด-haze-status":
              await channel.edit(name="๐ŸŸข-haze-status")
              await message.delete()
              await ctx.send("Changed status!")
    else:
      if status == "patched" or status == "Patched":
          for channel in ctx.guild.channels:
            if channel.name == "๐ŸŸข-haze-status":
                await channel.edit(name="๐ŸŸข-haze-status")
                await message.delete()
                await ctx.send("Changed status!")
            else:
              if channel.name == "๐Ÿ”ด-haze-status":
                await message.delete()
                await ctx.send("Haze's Status is already pacthed!")
  else:
    await ctx.send("You dont have permissions!")
``` it says changed channel name but it hasnt actually
woven shoalBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

strange geyser
#

First, please use just once post for these issues and second, is there an error or what

umbral veldt
#

nope