diff options
| author | 2020-08-26 18:12:00 -0700 | |
|---|---|---|
| committer | 2020-08-26 18:12:00 -0700 | |
| commit | 6efd6e5f22afc79d493b08d764e3fa666f9c8033 (patch) | |
| tree | b56d483092a74935911b5d9686a5140a50d0d7bf | |
| parent | Info: show verbose infractions if user cmd invoked in modmail (diff) | |
Fix infraction counts being shown in wrong channels
They should only be shown in mod channels, not all staff channels.
Fix #1127
| -rw-r--r-- | bot/cogs/moderation/scheduler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py index 051f6c52c..13180c2b6 100644 --- a/bot/cogs/moderation/scheduler.py +++ b/bot/cogs/moderation/scheduler.py @@ -12,7 +12,7 @@ from discord.ext.commands import Context from bot import constants from bot.api import ResponseCodeError from bot.bot import Bot -from bot.constants import Colours, STAFF_CHANNELS +from bot.constants import Colours, MODERATION_CHANNELS from bot.utils import time from bot.utils.scheduling import Scheduler from . import utils @@ -137,9 +137,9 @@ class InfractionScheduler: ) if reason: end_msg = f" (reason: {textwrap.shorten(reason, width=1500, placeholder='...')})" - elif ctx.channel.id not in STAFF_CHANNELS: + elif ctx.channel.id not in MODERATION_CHANNELS: log.trace( - f"Infraction #{id_} context is not in a staff channel; omitting infraction count." + f"Infraction #{id_} context is not in a mod channel; omitting infraction count." ) else: log.trace(f"Fetching total infraction count for {user}.") |