riking / AutoDelete

A Discord bot that automatically deletes all messages in a designated channel on a rolling basis
Apache License 2.0
326 stars 118 forks source link

Single-message delete triggers LoadBacklog too early #10

Closed riking closed 4 years ago

riking commented 4 years ago

After a single-message delete has been kicked off, the channel can be readded to the reaper queue, and the backlog reloaded, before the messages have finished being deleted. This can cause the messages to receive two deletion attempts, causing a flurry of errors.