【发布时间】:2019-02-19 22:22:37
【问题描述】:
我正在使用 Python 开发 User Discord Bot。如果 bot 所有者键入 !DM @user,那么 bot 将 DM 所有者提到的用户。
@client.event
async def on_message(message):
if message.content.startswith('!DM'):
msg = 'This Message is send in DM'
await client.send_message(message.author, msg)
【问题讨论】:
标签: python discord bots discord.py dm