From 733aa33f21245c95c17f7697232a0186fd1a46d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Thu, 20 Jun 2019 22:33:59 +0200 Subject: [PATCH] show number of users and bots --- commands/utility/server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/utility/server.js b/commands/utility/server.js index 741d8c7e..0f212154 100644 --- a/commands/utility/server.js +++ b/commands/utility/server.js @@ -37,8 +37,11 @@ class ServerCommand extends Command { .setColor('#0099ff') .setTitle(message.guild.name) .setThumbnail(message.guild.iconURL()) - .addField('Member', message.guild.memberCount, true) + .addField('Numbers of users', message.guild.members.filter(member => !member.user.bot).size, true) + .addField('Numbers of bots', message.guild.members.filter(member => member.user.bot).size, true) + .addField('Total numbers of members', message.guild.memberCount, true) .addField('Numbers of channel', message.guild.channels.size, true) + .addBlankField() .addField('Date when guild created', message.guild.createdAt, true) .addField('Owner', message.guild.owner, true) .addField('Numbers of tag', count, true)