Quote:Traceback (most recent call last): File "main.py", line 34, in <module> @bot.event() TypeError: event() missing 1 required positional argument: 'coro'
@bot.event() async def on_message(message): if message.author == bot.user: return if not message.guild: try: await message.channel.send("This is a DM.") except discord.errors.Forbidden: pass else: pass
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)