diff options
| author | 2021-07-15 19:33:33 -0700 | |
|---|---|---|
| committer | 2021-07-15 19:33:33 -0700 | |
| commit | d914046dc5b661d144537715dbf80ae6b361b0e8 (patch) | |
| tree | 5008ed2e0a95b5dec84b04f6658e57cf59803067 | |
| parent | Disallow resending hidden infractions (diff) | |
Clarify that a resent infraction DM is not a new infraction.
| -rw-r--r-- | bot/exts/moderation/infraction/management.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py index aeadee9d0..08d7e0b6d 100644 --- a/bot/exts/moderation/infraction/management.py +++ b/bot/exts/moderation/infraction/management.py @@ -52,7 +52,10 @@ class ModManagement(commands.Cog): return id_ = infraction["id"] - if await _utils.notify_infraction(infraction): + reason = infraction["reason"] or "No reason provided." + reason += "\n\n**This is a re-sent message for a previously applied infraction which may have been edited.**" + + if await _utils.notify_infraction(infraction, reason=reason): await ctx.send(f":incoming_envelope: Resent DM for infraction `{id_}`.") else: await ctx.send(f"{constants.Emojis.failmail} Failed to resend DM for infraction `{id_}`.") |