diff options
| -rw-r--r-- | bot/cogs/moderation/management.py | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/cogs/moderation/management.py b/bot/cogs/moderation/management.py index abfe5c2b3..2f5e09f1b 100644 --- a/bot/cogs/moderation/management.py +++ b/bot/cogs/moderation/management.py @@ -232,6 +232,12 @@ class ModManagement(commands.Cog):          user_id = infraction["user"]          hidden = infraction["hidden"]          created = time.format_infraction(infraction["inserted_at"]) + +        if active: +            remaining = time.until_expiration(infraction["expires_at"]) or 'Expired.' +        else: +            remaining = 'Inactive.' +          if infraction["expires_at"] is None:              expires = "*Permanent*"          else: @@ -247,6 +253,7 @@ class ModManagement(commands.Cog):              Reason: {infraction["reason"] or "*None*"}              Created: {created}              Expires: {expires} +            Remaining: {remaining}              Actor: {actor.mention if actor else actor_id}              ID: `{infraction["id"]}`              {"**===============**" if active else "==============="}  |