diff options
author | 2019-09-26 09:04:23 -0700 | |
---|---|---|
committer | 2019-09-26 09:04:23 -0700 | |
commit | 7d9db39b7e254f19c2bd72562d5c43e49444ba8d (patch) | |
tree | 019965f79ffdcdfea7d1d6fc4d2413485a48dab3 | |
parent | Display "Permanent" in mod log for edited infractions (diff) |
Show when field is unchanged in infraction edit confirmation message
-rw-r--r-- | bot/cogs/moderation.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index e9d978de6..089642e1b 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -916,6 +916,8 @@ class Moderation(Scheduler, Cog): elif expires_at is not None: request_data['expires_at'] = expires_at.isoformat() confirm_messages.append(f"set to expire on {expires_at.strftime('%c')}") + else: + confirm_messages.append("expiry unchanged") if reason: request_data['reason'] = reason @@ -924,6 +926,8 @@ class Moderation(Scheduler, Cog): Previous reason: {old_infraction['reason']} New reason: {reason} """.rstrip() + else: + confirm_messages.append("reason unchanged") # Update the infraction new_infraction = await self.bot.api_client.patch( |