/check-limit: fix wrong unit name in field name
This commit is contained in:
parent
6792c05959
commit
b2ee156028
1 changed files with 1 additions and 1 deletions
|
@ -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>`
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue