/check-limit: fix wrong unit name in field name

This commit is contained in:
Wroclaw 2023-09-21 20:08:52 +02:00
parent 6792c05959
commit b2ee156028

View file

@ -35,7 +35,7 @@ export default class MyLimit extends Command implements Command {
fields.push({ name: "Usage", inline: true, value: `${userQuotaRecovery.used} ${userQuotaRecovery.unitName}`.trim() }); fields.push({ name: "Usage", inline: true, value: `${userQuotaRecovery.used} ${userQuotaRecovery.unitName}`.trim() });
if (userQuotaRecovery.recoveryTimestamp !== undefined) fields.push({ 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" : value: userQuotaRecovery.recoveryTimestamp === Infinity ? "never" :
`<t:${Math.ceil(userQuotaRecovery.recoveryTimestamp/1000)}:R>` `<t:${Math.ceil(userQuotaRecovery.recoveryTimestamp/1000)}:R>`
}); });