From 3529821d6c41a7d219dbe816953f287e39311246 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Mon, 8 Mar 2021 12:56:12 +0530 Subject: [PATCH] log username & ID with warn (#106) --- src/commands/warn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/warn.ts b/src/commands/warn.ts index 98a110f..6767815 100644 --- a/src/commands/warn.ts +++ b/src/commands/warn.ts @@ -16,7 +16,7 @@ exports.command = function (message: discord.Message) { } logger.info(`${message.author.username} ${message.author} has warned ${user.username} ${user} [${count} + 1].`); - state.logChannel.send(`${message.author.toString()} has warned ${user.toString()} [${count} + 1].`); + state.logChannel.send(`${message.author.toString()} has warned ${user.toString()} (${user.username}) [${user}] [${count} + 1].`); state.warnings.push(new UserWarning(user.id, user.username, message.author.id, message.author.username, count, silent)); data.flushWarnings();