show number of users and bots

This commit is contained in:
Loïc Bersier 2019-06-20 22:33:59 +02:00
parent f78678174f
commit 733aa33f21

View file

@ -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)