TIME FOR ANOTHER ROUND OF SPAMMING COMMITS

This commit is contained in:
JandereDev 2021-10-13 22:14:33 +02:00
parent 5fee526f8b
commit 10e0f37a50
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -37,7 +37,7 @@ export default {
inf = inf.sort((a, b) => b.date - a.date); inf = inf.sort((a, b) => b.date - a.date);
msg += `**${await fetchUsername(inf[0].user)}** (${inf[0].user}): **${inf.length}** infractions\n`; msg += `**${await fetchUsername(inf[0].user)}** (${inf[0].user}): **${inf.length}** infractions\n`;
msg += `\u200b \u200b \u200b \u200b \u200b ↳ Most recent warning: \`${inf[0].reason}\` ` msg += `\u200b \u200b \u200b \u200b \u200b ↳ Most recent warning: \`${inf[0].reason}\` `
+ `${inf[0].type == InfractionType.Manual && `(${await fetchUsername(inf[0].createdBy ?? '')})`}\n`; + `${inf[0].type == InfractionType.Manual ? `(${await fetchUsername(inf[0].createdBy ?? '')})` : ''}\n`;
}; };
message.reply(msg.substr(0, 1999)); message.reply(msg.substr(0, 1999));