log username & ID with warn (#106)

This commit is contained in:
Vamsi Krishna 2021-03-08 12:56:12 +05:30 committed by GitHub
parent 4829396be9
commit 3529821d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();