我正在尝试在我的不和谐机器人上制作门票功能 它应该创建一个新的频道,以允许用户和主持人阅读该频道
@client.command()
async def ticket(ctx, *, reason):
username = ctx.message.author.name
username1 = str(ctx.message.author.id)
username2 = "<@" + username1 + ">"
name = "tickets"
category = discord.utils.get(ctx.guild.categories, name=name)
guild = ctx.message.guild
channel = await ctx.guild.create_text_channel(username, category=category)
await message.channel.set_permissions(message.author, read_messages=True,send_messages=True, overwrite=True)
await channel.send("Ticket send by: " + username2 + "\n" + "``" + reason + "``")
我如何仅允许该特定用户查看创建的新频道。