📜  将 dm 发送给用户 discord.py - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:19.993000             🧑  作者: Mango

代码示例3
# sends a DM to the user

@client.event
async def on_message(message):
  msg = message.content

  if msg.startswith('Hello!'):
    await message.author.send("Well hello there!")