mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-25 10:05:41 +01:00
Updated variable name for wearnings.
This commit is contained in:
parent
0a75dc0f70
commit
8034d2667c
@ -3,7 +3,7 @@ var logger = require('../logging.js');
|
|||||||
|
|
||||||
exports.command = function(message) {
|
exports.command = function(message) {
|
||||||
message.mentions.users.map((user) => {
|
message.mentions.users.map((user) => {
|
||||||
var count = app.warnings.filter(x => x.id == user.id && !x.cleared).length || 0;
|
var warnings = app.warnings.filter(x => x.id == user.id && !x.cleared);
|
||||||
message.channel.sendMessage(`${user}, you have ${count} warnings.`);
|
message.channel.sendMessage(`${user}, you have ${count.warnings} total warnings.`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user