@bot.command(pass_context=True)
@bot.command
async def say(ctx, a1, a2, a3, a4):
embed = discord.Embed(title=a1, description = a2, colour=0x4169E1)
emded.set_footer(description = a3)
embed.set_image(url=a4)
await ctx.message.delete()
await ctx.send(embed=embed)
Консоль:
Traceback (most recent call last):
File "bot.py", line 11, in <module>
async def say(ctx, a1, a2, a3, a4):
File "C:\Python38\lib\site-packages\discord\ext\commands\core.py", line 1162, in decorator
result = command(*args, **kwargs)(func)
File "C:\Python38\lib\site-packages\discord\ext\commands\core.py", line 1317, in decorator
return cls(func, name=name, **attrs)
File "C:\Python38\lib\site-packages\discord\ext\commands\core.py", line 210, in __init__
raise TypeError('Callback must be a coroutine.')
TypeError: Callback must be a coroutine.