Discord 属性错误:';消息';对象没有属性';频道';

Discord 属性错误:';消息';对象没有属性';频道';,discord,chatbot,discord.py-rewrite,Discord,Chatbot,Discord.py Rewrite,错误:on_消息中第33行的文件“main.py” 等待消息。通道。发送(“测试”) AttributeError:“Message”对象没有属性“CHANNEL”该消息对象具有频道属性,而不是频道哇。这是一个愚蠢的错误。谢谢兄弟,现在很好用 @CLIENT.event async def on_message(message): if ":cmonBrug:" in message.content: await message.CHANNEL.send(&quo

错误:on_消息中第33行的文件“main.py” 等待消息。通道。发送(“测试”)
AttributeError:“Message”对象没有属性“CHANNEL”

消息
对象具有
频道
属性,而不是
频道
哇。这是一个愚蠢的错误。谢谢兄弟,现在很好用
@CLIENT.event
async def on_message(message):
  if ":cmonBrug:" in message.content:
    await message.CHANNEL.send("Teste")
  await CLIENT.process_commands(message)