N
N
NiicKz2022-02-11 18:22:33
Python
NiicKz, 2022-02-11 18:22:33

discord.py commands not working?

After adding the ping response:

@bot.event()
async def on_message(message):
    if ("<@!id>" in message.content):
        await message.channel.send(embed = pingmessage)

It responded to ping. Only now all the usual commands stopped working. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zero None, 2022-02-11
@NiicKz

await Bot.process_commands(message) to the end of the function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question