Discord.py edit function error

On running a script,it shows me this error message

Ignoring exception in on_message_edit
Traceback (most recent call last):
  File "C:\Users\Debashis\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
TypeError: on_message_edit() takes 1 positional argument but 2 were given

, but my code is nothing more than

@bot.event
async def on_message_edit(message):
  pass

, I’ll be working on the function later, but it gives me an error already (and yes, message intents are enabled)
The other posts I found on this topic didn’t help me at all.
I don’t know if this’ll be helpful, but rn, I’m not using discord.Client but discord.ext.commands.Bot

1 Like