Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 未找到不一致创建角色404错误_Python_Python 3.x_Discord_Discord.py - Fatal编程技术网

Python 未找到不一致创建角色404错误

Python 未找到不一致创建角色404错误,python,python-3.x,discord,discord.py,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 有人知道如何获取有关此错误的更多信息吗?不要将颜色作为字符串,并在前面添加一个0x。所以改变 await client.create_role

当我尝试时:

await client.create_role(message.server, name='testrole', color=discord.Colour("FF0000"))
我得到这个错误:

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

有人知道如何获取有关此错误的更多信息吗?

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

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


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

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