chunky-dev / discord-bot

Friendly bot for the Chunky Discord server.
GNU Affero General Public License v3.0
2 stars 4 forks source link

Bot tries to delete thread creation messages for not having an image. #5

Closed ThatRedox closed 2 years ago

ThatRedox commented 2 years ago
INFO:bot:Removing message 961499721086681101 in 549680988989423631 for not having an image: Caustics
Ignoring exception in on_message
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/discord/client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "/app/main.py", line 55, in on_message
    warning = await message.reply(
  File "/usr/local/lib/python3.10/site-packages/discord/message.py", line 1358, in reply
    return await self.channel.send(content, reference=self, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/discord_slash/dpy_overrides.py", line 323, in send_override
    return await send(channel, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/discord_slash/dpy_overrides.py", line 300, in send
    data = await state.http.send_message(
  File "/usr/local/lib/python3.10/site-packages/discord/http.py", line 254, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In message_reference: Cannot reply to a system message

https://discord.com/channels/541221265512464394/549680988989423631/961359324750426244