From 7d9db39b7e254f19c2bd72562d5c43e49444ba8d Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Thu, 26 Sep 2019 09:04:23 -0700 Subject: Show when field is unchanged in infraction edit confirmation message --- bot/cogs/moderation.py | 4 ++++ 1 file changed, 4 insertions(+) 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( -- cgit v1.2.3