【发布时间】:2022-01-05 16:54:19
【问题描述】:
如果有人在聊天中说嘿,我希望机器人 dm 他们,但它绝对没有错误,也不起作用
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.lower == "hey":
await message.author.send("heyo")
await message.add_reaction(":b:")
await client.process_commands(message)
【问题讨论】:
-
您是否设置了不和谐意图?
-
是的,虽然在较低的函数之后我错过了括号
标签: discord discord.py bots dm