Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moderation: fix unban modlog entry creation (#1841)
* moderation: fix unban modlog entry creation Fix e3c6408 incorrectly reporting ban authors in the modlog. Modlog creation for unbans was moved to the audit log entry event handler, erroneously reporting the bot user as the author of any unban, including manual unbans with the bot's moderation command. Instead, UnbanUser now handles modlog entry creation, and handleScheduledUnban calls the same UnbanUser function rather than directly unbanning the user. Signed-off-by: Galen CC <galen8183@gmail.com> * moderation: remove old logic Signed-off-by: Galen CC <galen8183@gmail.com> * moderation: check discord API errors in scheduled unban handler Signed-off-by: Galen CC <galen8183@gmail.com> --------- Signed-off-by: Galen CC <galen8183@gmail.com>
- Loading branch information