【问题标题】:discord.py rewrite delete author messagediscord.py 重写删除作者信息
【发布时间】:2020-12-10 22:10:21
【问题描述】:

如何删除触发 discord.py 中的功能的消息?我希望它删除 !test 然后继续该功能。

编辑:解决方案是await ctx.message.delete()

【问题讨论】:

    标签: python discord.py discord.py-rewrite


    【解决方案1】:

    您从上下文中获取消息,然后将其删除。

    await ctx.message.delete()
    

    【讨论】:

      猜你喜欢
      • 2018-10-10
      • 2018-08-27
      • 1970-01-01
      • 2021-01-21
      • 2023-04-03
      • 2019-03-04
      • 2019-05-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多