mirror of
https://github.com/citra-emu/discord-bot.git
synced 2025-07-04 12:58:37 +00:00
10 lines
340 B
TypeScript
10 lines
340 B
TypeScript
import state from '../state';
|
|
import discord = require('discord.js');
|
|
|
|
exports.command = function (message: discord.Message) {
|
|
message.mentions.users.map((user) => {
|
|
const warnings = state.warnings.filter(x => x.id === user.id && !x.cleared);
|
|
message.channel.send(`${user}, you have ${warnings.length} total warnings.`);
|
|
});
|
|
};
|