【问题标题】:Discord Create Role 404 Not Found errorDiscord 创建角色 404 Not Found 错误
【发布时间】:2017-11-03 12:49:00
【问题描述】:

当我尝试时:

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

我收到此错误:

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

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

【问题讨论】:

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


    【解决方案1】:

    不要把颜色作为字符串,在前面加上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))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-07
      • 1970-01-01
      • 2019-05-12
      • 1970-01-01
      • 1970-01-01
      • 2019-08-02
      • 2021-12-18
      • 2017-09-03
      相关资源
      最近更新 更多