From b42c84f0e5a584ae5ad1ea9caf6f7d4a724efe52 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 17:01:40 -0500 Subject: [PATCH] Fix roles from members --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 68bc36e..62b8943 100644 --- a/index.js +++ b/index.js @@ -45,7 +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 numRoles = message.guild.roles.cache.size; const aboutServerEmbed = new Discord.MessageEmbed() .setTitle(`About \`${message.guild.name}\``) .addField("Owner", `<@${message.guild.ownerID}>`) @@ -53,7 +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) + .addField("Roles", numRoles)j .setThumbnail(message.guild.iconURL()) .setFooter(`Server ID: ${message.guild.id}`) .setTimestamp();