Display in bold whether a warning is active or decayed (#10)

Co-Authored-By: Sheldan <5037282+Sheldan@users.noreply.github.com>
This commit is contained in:
OneNormalUsername
2021-12-23 14:48:33 +00:00
committed by GitHub
parent 921a5259ee
commit bb47784554
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
<#include "format_instant">
<#assign decayed=warning.warning.decayed/>
<#assign warnId>${warning.warning.warnId.id}</#assign>
<#assign reason>${warning.warning.reason}</#assign>
<#assign warnedUserText><#if warning.warnedUser.member??>${warning.warnedUser.member.asMention}(${warning.warnedUser.member.user.id})<#else>${warning.warnedUser.userId?c}</#if></#assign>

View File

@@ -1 +1 @@
Warning #${warnId} with reason: `${reason}` towards user ${warnedUserText} by user ${warningUserText} on ${warnDate}.
Warning #${warnId} with reason: `${reason}` towards user ${warnedUserText} by user ${warningUserText} on ${warnDate}. The warning is **${decayed?then('decayed', 'active')}**