From 10e0f37a50e67767a1c647c551448d412d7475f2 Mon Sep 17 00:00:00 2001 From: JandereDev Date: Wed, 13 Oct 2021 22:14:33 +0200 Subject: [PATCH] TIME FOR ANOTHER ROUND OF SPAMMING COMMITS --- src/bot/commands/warns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/commands/warns.ts b/src/bot/commands/warns.ts index a082557..f1f1484 100644 --- a/src/bot/commands/warns.ts +++ b/src/bot/commands/warns.ts @@ -37,7 +37,7 @@ export default { inf = inf.sort((a, b) => b.date - a.date); 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}\` ` - + `${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));