【发布时间】:2021-07-10 18:06:25
【问题描述】:
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:目标参数必须是成员或角色
【问题讨论】:
标签: python python-3.x discord discord.py