From 970a12ed273e547f62c5e6ec3ac65c5ebdc5d4fa Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Mon, 25 Sep 2023 12:26:38 +0200 Subject: [PATCH] Make warning expiration wording more obvious --- actions/warn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/warn.js b/actions/warn.js index 6e64d17..248d527 100644 --- a/actions/warn.js +++ b/actions/warn.js @@ -41,7 +41,7 @@ module.exports = async ({ admin, amend, reason, userToWarn }) => { const warnMessage = html` ⚠️ ${lrm}${admin.first_name} warned ${link(userToWarn)}. ${count}: ${lrm}${reason} - ${typeof expireWarnsAfter === 'undefined' || expireWarnsAfter === Infinity ? '' : `Expires on ${yyyymmdd(new Date(date.getTime() + ms(expireWarnsAfter)))}`} + ${typeof expireWarnsAfter === 'undefined' || expireWarnsAfter === Infinity ? '' : `This warning expires on ${yyyymmdd(new Date(date.getTime() + ms(expireWarnsAfter)))}`} `; if (recentWarns.length >= numberOfWarnsToBan) {