From 61cb2575d3767aafa1bbca4170c503262254377e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 15 May 2023 11:39:01 +0300 Subject: [PATCH] language entry for infractions that never expire --- src/localization/en_gb/general/en_gb_moderation.lang | 3 +++ src/structure/interfaces/Infraction.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/localization/en_gb/general/en_gb_moderation.lang b/src/localization/en_gb/general/en_gb_moderation.lang index 52e6c4f..79e0240 100644 --- a/src/localization/en_gb/general/en_gb_moderation.lang +++ b/src/localization/en_gb/general/en_gb_moderation.lang @@ -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} diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index 2e74f7d..160b759 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -193,7 +193,7 @@ class Infraction { description += `\n${this.guild.format('INFRACTION_DESCRIPTIONPOINTS', { points: this.points, total: this.totalPoints, - expires: `` + expires: this.expiration ? `` : this.guild.format('INFRACTION_NO_EXPIRATION') })}`; }