Skip to content

Commit

Permalink
Make warning expiration wording more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Sep 25, 2023
1 parent e3a0cc3 commit 970a12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = async ({ admin, amend, reason, userToWarn }) => {
const warnMessage = html`
⚠️ ${lrm}${admin.first_name} <b>warned</b> ${link(userToWarn)}.
${count}: ${lrm}${reason}
<i>${typeof expireWarnsAfter === 'undefined' || expireWarnsAfter === Infinity ? '' : `Expires on ${yyyymmdd(new Date(date.getTime() + ms(expireWarnsAfter)))}`}</i>
<i>${typeof expireWarnsAfter === 'undefined' || expireWarnsAfter === Infinity ? '' : `This warning expires on ${yyyymmdd(new Date(date.getTime() + ms(expireWarnsAfter)))}`}</i>
`;

if (recentWarns.length >= numberOfWarnsToBan) {
Expand Down

0 comments on commit 970a12e

Please sign in to comment.