diff options
author | 2020-10-17 22:16:28 +1000 | |
---|---|---|
committer | 2020-10-17 22:16:28 +1000 | |
commit | 28abf846ca45c693e7016ed090a732a81cae200c (patch) | |
tree | 8bedfc96986d11188bb111aa7590ee1125853d16 | |
parent | PR #1157 Reddit: filter NSFW posts (diff) | |
parent | Merge branch 'master' into mbaruh-inf-id (diff) |
Merge pull request #1240 from python-discord/mbaruh-inf-id
-rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 814b17830..dba3f1513 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -138,7 +138,7 @@ class InfractionScheduler: end_msg = f" (reason: {textwrap.shorten(reason, width=1500, placeholder='...')})" elif ctx.channel.id not in MODERATION_CHANNELS: log.trace( - f"Infraction #{id_} context is not in a mod channel; omitting infraction count." + f"Infraction #{id_} context is not in a mod channel; omitting infraction count and id." ) else: log.trace(f"Fetching total infraction count for {user}.") @@ -148,7 +148,7 @@ class InfractionScheduler: params={"user__id": str(user.id)} ) total = len(infractions) - end_msg = f" ({total} infraction{ngettext('', 's', total)} total)" + end_msg = f" (#{id_} ; {total} infraction{ngettext('', 's', total)} total)" # Execute the necessary actions to apply the infraction on Discord. if action_coro: |