Shows number of bot in the guild

This commit is contained in:
Supositware 2019-04-11 18:16:48 +02:00
parent bf934e0268
commit 5be3b9645b
2 changed files with 4 additions and 2 deletions

View file

@ -21,7 +21,8 @@ class guildCreateListener extends Listener {
.setThumbnail(guild.iconURL()) .setThumbnail(guild.iconURL())
.addField('Guild name', guild.name, true) .addField('Guild name', guild.name, true)
.addField('Guild ID', guild.id, true) .addField('Guild ID', guild.id, true)
.addField('Numbers of members', guild.memberCount) .addField('Numbers of members', guild.memberCount, true)
.addField('Numbers of bot', guild.members.filter(member => !member.user.bot).size, true)
.addField('Owner', guild.owner.user.username, true) .addField('Owner', guild.owner.user.username, true)
.addField('Owner ID', guild.owner.id, true) .addField('Owner ID', guild.owner.id, true)
.setFooter(`Im now in ${this.client.guilds.size} servers!`) .setFooter(`Im now in ${this.client.guilds.size} servers!`)

View file

@ -22,7 +22,8 @@ class guildCreateListener extends Listener {
.setThumbnail(guild.iconURL()) .setThumbnail(guild.iconURL())
.addField('Guild name', guild.name, true) .addField('Guild name', guild.name, true)
.addField('Guild ID', guild.id, true) .addField('Guild ID', guild.id, true)
.addField('Numbers of members', guild.memberCount) .addField('Numbers of members', guild.memberCount, true)
.addField('Numbers of bot', guild.members.filter(member => !member.user.bot).size, true)
.addField('Owner', guild.owner.user.username, true) .addField('Owner', guild.owner.user.username, true)
.addField('Owner ID', guild.owner.id, true) .addField('Owner ID', guild.owner.id, true)
.setFooter(`Im now in ${this.client.guilds.size} servers!`) .setFooter(`Im now in ${this.client.guilds.size} servers!`)