language entry for infractions that never expire

This commit is contained in:
Erik 2023-05-15 11:39:01 +03:00
parent e0879e4548
commit 61cb2575d3
Signed by untrusted user: Navy.gif
GPG Key ID: 2532FBBB61C65A68
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ Failed to {infraction} {targetType} {target} because {reason}.
[INFRACTION_DESCRIPTIONPOINTS]
**Points:** {points} (expires {expires}) | **Total Points**: {total}
[INFRACTION_NO_EXPIRATION]
never
[INFRACTION_DESCRIPTIONDURATION]
**Duration:** {duration}

View File

@ -193,7 +193,7 @@ class Infraction {
description += `\n${this.guild.format('INFRACTION_DESCRIPTIONPOINTS', {
points: this.points,
total: this.totalPoints,
expires: `<t:${Math.round(this.expiration / 1000)}:R>`
expires: this.expiration ? `<t:${Math.round(this.expiration / 1000)}:R>` : this.guild.format('INFRACTION_NO_EXPIRATION')
})}`;
}