Answer the question
In order to leave comments, you need to log in
TypeError: on_message() missing 1 required positional argument: 'message', how to fix the code for stable work?
@bot.event
async def on_message(ctx, message):
if message.content == '!Test':
await ctx.send(f'Test')
Throws a writing error TypeError: on_message() missing 1 required positional argument: ' message', how to fix? Discord.py, Python.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question