const db = require("quick.db"); const Discord = require ("discord.js") const { version } = require('../../package.json'); const ms = require('pretty-ms'); const { version: discordjsVersion } = require('discord.js'); module.exports = { name: "membercount", category: "info", aliases: ['membercount', 'membercounts', 'mc'], description: 'Überprüfen Sie den Status des Bots', run: async (client, message, args, del, member) => { const members = message.guild.members.cache; message.channel.send(new Discord.MessageEmbed() .setColor('RANDOM') .setTitle(`${message.author.tag}`) .setThumbnail(client.user.displayAvatarURL({ dynamic: true })) .addField('**• Membercount**', `${message.guild.memberCount}`, true) .addField(`**• Humans**`, `${members.filter(member => !member.user.bot).size} users`, true) .addField('**• Bots**', `${members.filter(member => member.user.bot).size} bots`, true) .addField('Wichtige Links ','**• [Support](https://difficult-knights.de/index.php?site=ticketcenter)** • **[Website](https://Difficult-Knights.de/)** ** • [Invite Me](https://discord.com/api/oauth2/authorize?client_id=974563800319676446&permissions=8&scope=bot)**') .setTimestamp() .setFooter( `Difficult-Knights BOT`, client.user.displayAvatarURL() )) } };