【发布时间】:2018-12-01 16:21:28
【问题描述】:
Python Bot 发送回复后未删除用户输入命令。我在最后一行添加了await bot.delete_message(message),回复后仍然没有删除。
示例:在机器人回复 Pong 之后。它应该删除?ping
@bot.command(pass_context=True)
async def ping(ctx):
msg = "Pong. {0.author.mention}".format(ctx.message)
await bot.say(msg)
await bot.delete_message(message)
【问题讨论】:
标签: python python-3.x discord discord.py