Discord.py 客户端事件阻止我的命令工作

Discord.py 客户端事件阻止我的命令工作,discord.py,Discord.py,所以我试着制作一个on_消息事件来检测关键字并响应它,但问题是现在它不允许其他命令工作了 async def on_message(message): if 'gay' in message.content: await message.channel.send('no u') 您需要添加await client.process_命令(消息)到on_message事件的末尾

所以我试着制作一个on_消息事件来检测关键字并响应它,但问题是现在它不允许其他命令工作了

async def on_message(message):
    if 'gay' in message.content:
        await message.channel.send('no u')

您需要添加
await client.process_命令(消息)
on_message
事件的末尾