0

当我尝试:

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

我收到此错误:

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

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

4

1 回答 1

3

不要将颜色作为字符串并0x在前面添加a。所以改变

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

进入

await client.create_role(message.server, name='testrole', color=discord.Colour(0xFF0000))
于 2017-06-02T15:01:05.107 回答