@client.command() async def create_channel(ctx, channel_name): guild = ctx.guild channel = await guild.create_text_channel(channel_name)