aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-06-23 16:52:40 +0100
committerGravatar GitHub <[email protected]>2025-06-23 16:52:40 +0100
commit4b04acb74a67699532fe264faa8a1bd344e49dcb (patch)
tree244d41610d9ea2dfb39183038e845f135042477d
parentImprove error handling with scheduled deletion of infraction messages (diff)
Drop log verbosity for forbidden infraction message deletions
-rw-r--r--bot/exts/moderation/infraction/_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py
index 11d5404a9..0680f5307 100644
--- a/bot/exts/moderation/infraction/_scheduler.py
+++ b/bot/exts/moderation/infraction/_scheduler.py
@@ -122,7 +122,7 @@ class InfractionScheduler:
except discord.NotFound:
log.warning(f"Channel or message {message_id} not found in channel {channel_id}.")
except discord.Forbidden:
- log.warning(f"Bot lacks permissions to delete message {message_id} in channel {channel_id}.")
+ log.info(f"Bot lacks permissions to delete message {message_id} in channel {channel_id}.")
except discord.HTTPException:
log.exception(f"Issue during scheduled deletion of message {message_id} in channel {channel_id}.")
return # Keep the task in Redis on HTTP errors