错误"list"对象在python中没有属性"reference"

当我运行我的文件时,没有问题,当我执行命令时,我得到一个错误代码,我不知道如何重新读取,我没有创建列表。
以下是错误代码:
`第13行,在On_Message中
If Message.Content.find(f""!{MEMBER.ADE}需要爱"")!=-1:
AttributeError:'List'对象没有'提及'属性`
以下是代码:

选择 | 换行 | 行号
  1.     @client.event
  2.     async def on_message(message):
  3.         id = client.get_guild(***)
  4.         channels = ["commands"]
  5.         member = message.mentions or message.author
  6.         if str(message.channel) in channels :
  7.             if message.content.find (f"""!{member.mention} need love""") != -1:
  8.                 await message.channel.send(f"""Oooooh {member.mention}, we love you, 
  9.                 you are beautiful, amazing, valid, and the {id.member_count} people
  10.                  on this server care about you. ♥♥♥♥♥""")

标签: python

添加新评论