@client.event 忽略 @client.command()

时间:2021-06-02 14:08:36

标签: discord.py

当我使用@client.event 时,它会在它之后忽略@client.command,并且在我写前缀+命令后没有任何反应。我该怎么办

@client.event
async def on_message(message):
    if message.content == userId:
        await message.reply("I asked not to ping me :')")

#It just ignores @client.command
@client.command()
async def halp(ctx):
    await ctx.send("No")

0 个答案:

没有答案