I am trying to create a command that creates a text channel. However, its not working. It doesn't even show an error. I am using Discord.py Rewrite.
Here is the code I've tried:
@client.command()
async def addcha(ctx, channel : discord.TextChannel):
await ctx.guild.create_text_channel(channel=None)
await ctx.send(f"A new channel called {channel} was made")