show expiration in embed
parent
6f8104ecb5
commit
40c38ba299
|
@ -165,7 +165,7 @@ export default class Score extends Command {
|
||||||
score.inquiries.forEach((inq) => {
|
score.inquiries.forEach((inq) => {
|
||||||
const testDate = (new Date(new Date(inq.date).setHours(1460)));
|
const testDate = (new Date(new Date(inq.date).setHours(1460)));
|
||||||
// eslint-disable-next-line no-useless-escape
|
// eslint-disable-next-line no-useless-escape
|
||||||
if (testDate > new Date()) desc += `${inq.id ? `__[${inq.id}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n**Expires:** ${moment(testDate).fromNow()} | ${moment(testDate).calendar()}\n\n`;
|
if (testDate > new Date()) desc += `${inq.id ? `__[${inq.id}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n**Expires:** ${moment(testDate).calendar()}\n\n`;
|
||||||
});
|
});
|
||||||
embed.setDescription(desc);
|
embed.setDescription(desc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue