aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/infraction/management.py5
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_}`.")