Unbanning a member that has an auto-unban scheduled results in log spam
Octol1ttle opened this issue · comments
Description
If a user bans a member with a duration via Octobot, but then that member gets unbanned by someone other than Octobot, the bot will still attempt to auto-unban the member. This results in the logs being spammed by UNKNOWN_BAN
REST errors
Expected vs. Actual Behavior
It is expected that Octobot will recognise that the member has already been unbanned and unset BannedUntil
.
Reproduction Steps
- Ban a member via Octobot for, say, 2 minutes.
- Unban the member via Discord UI
- Watch the logs get spammed when the scheduled auto-unban time comes.
Other Information
No response