diff --git a/index.js b/index.js index 9b6079d..f2ee4fd 100644 --- a/index.js +++ b/index.js @@ -43,12 +43,15 @@ async function aboutServer(message) { const textChannelCount = message.guild.channels.cache.filter(c => c.type === 'text').size; const voiceChannelCount = message.guild.channels.cache.filter(c => c.type === 'voice').size; const categoryChannelCount = message.guild.channels.cache.filter(c => c.type === 'category').size; + const numHumans = message.guild.members.cache.filter(member => !member.user.bot).size; + const numBots = message.guild.members.cache.filter(member => member.user.bot).size; const aboutServerEmbed = new Discord.MessageEmbed() .setTitle(`About \`${message.guild.name}\``) .addField("Owner", `<@${message.guild.ownerID}>`) .addField("Region", message.guild.region) .addField("Verification Level", message.guild.verificationLevel) .addField("Channels", `Text: ${textChannelCount} • Voice: ${voiceChannelCount} • Categories: ${categoryChannelCount}`) + .addField("Members", `Human: ${numHumans} • Bot: ${numBots}`) .setThumbnail(message.guild.iconURL()) .setFooter(`Server ID: ${message.guild.id}`) .setTimestamp();