From b2ee15602857b322bf8d8355cea3713bee470c1e Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 21 Sep 2023 20:08:52 +0200 Subject: [PATCH] /check-limit: fix wrong unit name in field name --- src/commands/check-limit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/check-limit.ts b/src/commands/check-limit.ts index 616bb11..c9e667b 100644 --- a/src/commands/check-limit.ts +++ b/src/commands/check-limit.ts @@ -35,7 +35,7 @@ export default class MyLimit extends Command implements Command { fields.push({ name: "Usage", inline: true, value: `${userQuotaRecovery.used} ${userQuotaRecovery.unitName}`.trim() }); if (userQuotaRecovery.recoveryTimestamp !== undefined) fields.push({ - name: `Recovery for ${recoveryFor} message${recoveryFor>1 ? "s" : ""}`, + name: `Recovery for ${recoveryFor} ${userQuotaRecovery.unitName}`.trim(), value: userQuotaRecovery.recoveryTimestamp === Infinity ? "never" : `` });