From 1726fdcdeb0975851f6e2053bf52cb8bb3991d67 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 17:01:00 -0500 Subject: [PATCH] Add roles --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 248b0bb..68bc36e 100644 --- a/index.js +++ b/index.js @@ -45,6 +45,7 @@ async function aboutServer(message) { 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 numRoles = message.guild.members.cache.size; const aboutServerEmbed = new Discord.MessageEmbed() .setTitle(`About \`${message.guild.name}\``) .addField("Owner", `<@${message.guild.ownerID}>`) @@ -52,6 +53,7 @@ async function aboutServer(message) { .addField("Verification Level", message.guild.verificationLevel) .addField("Channels", `Total: ${message.guild.channels.cache.size} ‖ Text: ${textChannelCount} • Voice: ${voiceChannelCount} • Categories: ${categoryChannelCount}`) .addField("Members", `Total: ${numHumans + numBots} ‖ Human: ${numHumans} • Bot: ${numBots}`) + .addField("Roles", numRoles) .setThumbnail(message.guild.iconURL()) .setFooter(`Server ID: ${message.guild.id}`) .setTimestamp();