mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-22 18:55:43 +00:00
log username & ID with warn (#106)
This commit is contained in:
parent
4829396be9
commit
3529821d6c
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue