{"size": 830, "ext": "js", "max_stars_repo_path": "commands/tag.js", "max_stars_repo_name": "LordJax/Official", "max_stars_repo_stars_event_min_datetime": "2021-09-22T08:27:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-22T08:27:52.000Z", "max_issues_repo_path": "commands/tag.js", "max_issues_repo_name": "LordJax/Official", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/tag.js", "max_forks_repo_name": "LordJax/Official", "max_forks_repo_forks_event_min_datetime": "2018-10-05T17:59:37.000Z", "max_forks_repo_forks_event_max_datetime": "2018-10-05T17:59:37.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 28.6206896552, "max_line_length": 86, "alphanum_fraction": 0.4493975904}
const Discord = require("discord.js");

module.exports.run = async (client,message,args) => {
    exports.run = (bot, message, args) => {
        const id = args[0];
        if (id == undefined) {
          message.reply("No argument set");
          return;
        } else {
          const arr = [];
          message.guild.fetchMembers().then(guild => {
            guild.members.forEach(member => {
              if (member.user.discriminator === id) arr.push(`<@${member.user.id}>`);
            });
            if (arr.length > 0) {
              message.reply("Users that have #" + id + " -> " + arr.join(", "));
            } else {
              message.reply("No one has that discriminator");
            }
          });
        }
      };
      


}
module.exports.help = {
    name: "tag"
}