We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7872f5 commit dad7497Copy full SHA for dad7497
bot/exts/moderation/infraction/_scheduler.py
@@ -321,7 +321,8 @@ async def apply_infraction(
321
mentions = discord.AllowedMentions(users=[user], roles=False)
322
sent_msg = await ctx.send(f"{dm_result}{confirm_msg}{infr_message}.", allowed_mentions=mentions)
323
324
- if infraction["actor"] == self.bot.user.id:
+ # Only tidy up bot issued infractions in non-mod channels.
325
+ if infraction["actor"] == self.bot.user.id and not is_mod_channel(ctx.channel):
326
expire_message_time = datetime.now(UTC) + timedelta(hours=AUTOMATED_TIDY_UP_HOURS)
327
328
log.trace(f"Scheduling message tidy for infraction #{id_} in {AUTOMATED_TIDY_UP_HOURS} hours.")
0 commit comments