python—我想创建一个仅对管理员discord.py可见的通道

slwdgvem  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(230)
async def report(ctx, member: discord.Member, *, report=None):
    report_channel = await ctx.guild.create_text_channel("reports")
    await report_channel.set_permissions(has_permissions(administrator=True), view_channel=True, add_reactions=True)

# I tried to fix it every time but it never works i just want to make that specific report channel to be only visible for admins :(

我一直收到以下错误:命令引发异常:invalidargument:目标参数必须是成员或角色

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题