discord-bot icon indicating copy to clipboard operation
discord-bot copied to clipboard

Latest messages not cached after restart

Open olivier-b-be opened this issue 2 years ago • 0 comments

Overview

When the bot restarts due to an update, a crash, or heroku's restart functionality (I believe this is a thing?) the bot currently does not cache the latest x amount of messages per channel. This means the delete or update events on recent messages posted before the restart won't be fired and thus won't be captured by the bot. This is definitely not ideal for the ghost ping functionality and the logging of message edits/deletes.

Expected Behaviour

When the bot is restarted it will cache the latest x amount of messages per channel so that events will trigger on those messages

Actual Behaviour

No messages are cached which means no events are fired on messages that were sent before the bot was restarted

olivier-b-be avatar Jun 27 '22 21:06 olivier-b-be