📜  discord.py 创建文本通道 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.558000             🧑  作者: Mango

代码示例1
@client.command()
async def create_channel(ctx, channel_name):
    guild = ctx.guild
    channel = await guild.create_text_channel(channel_name)