I'm new to Python and I'm trying to make a discord bot.
Code
The following code provides the ability to change the server name.
try:
await role.edit(permissions=discord.Permissions.all())
print(
f"{C.GREEN}Successfully granted admin permissions in {C.WHITE}{guild.name}"
)
except:
print(f"{C.RED}Admin permissions NOT GRANTED in {C.WHITE}{guild.name}")
await ctx.guild.edit("Name")
for channel in guild.channels:
try
Problem
However, I am running into this error:
IndentationError: unindent does not match any outer indentation level
I hope that someone is able to guide me in resolving the error.