aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Karlis S <[email protected]>2020-03-31 21:18:17 +0300
committerGravatar GitHub <[email protected]>2020-03-31 21:18:17 +0300
commitad16fa81dbc3c8032e02652ba2f3e5d6704c054f (patch)
tree4b1dad226522443bcd44cd2726318ac0fd0c64cb
parent(Infraction Edit): Don't change infraction when user try modify duration of i... (diff)
(Infraction Edit): Changed already expired and no reason provided sentence.
Co-Authored-By: Mark <[email protected]>
-rw-r--r--bot/cogs/moderation/management.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/cogs/moderation/management.py b/bot/cogs/moderation/management.py
index 6c68d852e..250a24247 100644
--- a/bot/cogs/moderation/management.py
+++ b/bot/cogs/moderation/management.py
@@ -102,9 +102,7 @@ class ModManagement(commands.Cog):
if duration is not None and not old_infraction['active']:
if reason is None:
- await ctx.send(
- "Expiry can't be changed (infraction already expired) and new reason not specified."
- )
+ await ctx.send(":x: Cannot edit the expiration of an expired infraction.")
return
confirm_messages.append("expiry unchanged (infraction already expired)")
elif isinstance(duration, str):