Skip to content Skip to sidebar Skip to footer

Discord.py Missing Required Argument

I have a rewrite version discord.py.If message have content, error does not happened.I need that error does not happened if message have not content. My code: @client.command(p

Solution 1:

The way commands parse arguments means that defining

asyncdefsearch(ctx, message):

means that search requires a word message as part of the command invocation. If you instead want to capture the remainder of the message, you can use the keyword-only argument syntax:

asyncdefsearch(ctx, *, message)

This feature is documented here.

Post a Comment for "Discord.py Missing Required Argument"