From 8d6950ac20c97c211f668104d27812d07d9a782d Mon Sep 17 00:00:00 2001 From: Supositware Date: Wed, 17 Apr 2019 19:11:16 +0200 Subject: [PATCH] correctly show number of bot and also show number of users and total members --- event/listeners/guildCreate.js | 5 +++-- event/listeners/guildDelete.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/event/listeners/guildCreate.js b/event/listeners/guildCreate.js index 20f3a3f0..d0150087 100644 --- a/event/listeners/guildCreate.js +++ b/event/listeners/guildCreate.js @@ -21,8 +21,9 @@ class guildCreateListener extends Listener { .setThumbnail(guild.iconURL()) .addField('Guild name', guild.name, true) .addField('Guild ID', guild.id, true) - .addField('Numbers of members', guild.memberCount, true) - .addField('Numbers of bot', guild.members.filter(member => !member.user.bot).size, true) + .addField('Total numbers of members', guild.memberCount, true) + .addField('Number of users', guild.members.filter(member => !member.user.bot).size, true) + .addField('Numbers of bot', guild.members.filter(member => member.user.bot).size, true) .addField('Owner', guild.owner.user.username, true) .addField('Owner ID', guild.owner.id, true) .setFooter(`Im now in ${this.client.guilds.size} servers!`) diff --git a/event/listeners/guildDelete.js b/event/listeners/guildDelete.js index bbfaac8f..b314efb8 100644 --- a/event/listeners/guildDelete.js +++ b/event/listeners/guildDelete.js @@ -22,8 +22,9 @@ class guildCreateListener extends Listener { .setThumbnail(guild.iconURL()) .addField('Guild name', guild.name, true) .addField('Guild ID', guild.id, true) - .addField('Numbers of members', guild.memberCount, true) - .addField('Numbers of bot', guild.members.filter(member => !member.user.bot).size, true) + .addField('Total numbers of members', guild.memberCount, true) + .addField('Number of users', guild.members.filter(member => !member.user.bot).size, true) + .addField('Numbers of bot', guild.members.filter(member => member.user.bot).size, true) .addField('Owner', guild.owner.user.username, true) .addField('Owner ID', guild.owner.id, true) .setFooter(`Im now in ${this.client.guilds.size} servers!`)