how to get text channel discord.py code example
Example: discord.py create text channel
@client.command()
async def create_channel(ctx, channel_name):
guild = ctx.guild
channel = await guild.create_text_channel(channel_name)
@client.command()
async def create_channel(ctx, channel_name):
guild = ctx.guild
channel = await guild.create_text_channel(channel_name)