#Unexpected MessageDelete events in discord.js v14.26.2 (no messages deleted)

1 messages · Page 1 of 1 (latest)

dry cradle

Hello!

Recently I noticed very strange behavior in my Discord bot. This issue did not occur before.
My bot suddenly starts triggering the MessageDelete event multiple times (sometimes 200 times in a few minutes), which causes errors in my handler. The strange part is that no messages are being deleted at all. The handler also cannot be the cause of the issue - it only sends an embed to a specific channel.

Important details:

  • The server is inactive (development server)
  • No users are deleting messages
  • No new messages are being sent (there are only messages sent by staff - approximately 20 messages for a day)
  • No channels or threads are being deleted
  • I only have one MessageDelete listener

I am aware that messages are not cached after a bot restart, but this is not the case here. The bot has already been running for some time and messages were loaded.
Despite that, the MessageDelete event fires unexpectedly and repeatedly.
I spent around an hour researching this, but couldn’t find a clear explanation.

Has anyone experienced something similar?

Thanks in advance!