Yes, I know this is a new feature and might not get an answer.
Today, discord made a new feature called 'Stage Channels' pretty neat and awesome and I would like to code a discord.py bot to create a discord channel. This is my code:
import discord
from discord.ext import commands
import os
prefix = "r!"
intents = discord.Intents.default()
client = commands.Bot(command_prefix=prefix, intents=intents)
@client.event
async def on_ready():
print('connected to Discord as {0.user}'.format(client))
@client.command()
async def livechannel(ctx):
await ctx.guild.create_role(name="Role Name")
await ctx.guild.create_stage_channel('Stage Name')
client.run(os.getenv('TOKEN'))
it works fine if I change stage to tex and it creates the role.