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:
<The way commands parse arguments means that defining
async def search(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:
async def search(ctx, *, message)
This feature is documented here.