discord.py上的角色位置

2024-04-27 09:17:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我的位置有问题,我不知道我做错了什么

async def cipcia(ctx, *, arg):
    message = ctx.message
    guild = ctx.guild
    mama = 10
    await guild.create_role(name=arg, position=mama)

错误:

 Command raised an exception: InvalidArgument: 'position' is not a valid field.

Tags: namemessageasyncdef错误createargposition