小编DCE*_*521的帖子

检查消息回复是否为回复类型消息discord.py

我有以下基本的 python 不和谐机器人代码:

@bot.command()
async def replyTest(ctx):
    await ctx.send('Reply to this message')
    def check(m):
        return m
    msg = await bot.wait_for("message", check=check)
    print(msg)
Run Code Online (Sandbox Code Playgroud)

有没有办法m只在m回复类型消息时返回?

python-3.x discord discord.py

2
推荐指数
1
解决办法
6446
查看次数

标签 统计

discord ×1

discord.py ×1

python-3.x ×1