A
A
AdvoKappa2020-05-31 18:47:12
Python
AdvoKappa, 2020-05-31 18:47:12

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

1 answer(s)
D
Dr. Bacon, 2020-05-31
@AdvoKappa

You have already been answered, and even better, go and read the doc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question