TeamOctolings / Octobot

A general-purpose Discord bot for moderation written in C#

Home Page:https://teamoctolings.github.io/Octobot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Ban a member via Octobot for, say, 2 minutes.
  2. Unban the member via Discord UI
  3. Watch the logs get spammed when the scheduled auto-unban time comes.

Other Information

No response