mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-23 04:55:29 +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].`);
|
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));
|
state.warnings.push(new UserWarning(user.id, user.username, message.author.id, message.author.username, count, silent));
|
||||||
data.flushWarnings();
|
data.flushWarnings();
|
||||||
|
|
Loading…
Reference in a new issue