'TypeError: event() missing 1 required positional argument: 'coro' - need help, full error in body
problematic code when i start him:
@bot.event()
async def help(message_a):
if message_a.content.startswith('CD!help'):
embedVar = discord.Embed(title="Помощь" , description="Команды:" , color=0x8800cc)
embedVar.add_field(name="Общие команды:" ,
value="1.cat - присылает картинку кота(50 вариантов)\n2.say - вы можете говорить за бота\n3.ball - гадание... не плохо, погадайте на шаре\n4.rps - бот случайно пишет камень, ножницы или бумага\n5.cc - присылает картинку милого комара(10 вариантов)" ,
inline=False)
await message.channel.send(embed=embedVar)
me send this error(i don t know how it fix):
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\й1\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "F:\pythonProject1\main.py", line 107, in on_message
@bot.event()
TypeError: event() missing 1 required positional argument: 'coro'
help pls me realy need it i create this bot for my discord server
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
