Discord创建角色404 Not Found错误

时间:2017-06-02 07:36:24

标签: python python-3.x discord discord.py

当我尝试:

await client.create_role(message.server, name='testrole', color=discord.Colour("FF0000"))

我收到此错误:

discord.errors.NotFound: NOT FOUND (status code: 404): Unknown Message

有谁知道如何获得有关此错误的更多信息?

1 个答案:

答案 0 :(得分:3)

请勿将颜色作为字符串添加,并在前面添加0x。所以改变

await client.create_role(message.server, name='testrole', color=discord.Colour("FF0000"))

await client.create_role(message.server, name='testrole', color=discord.Colour(0xFF0000))