Fix command

This commit is contained in:
loicbersier 2020-03-04 12:41:46 +01:00
parent 010a617ed4
commit bbadea4eda

View file

@ -16,7 +16,7 @@ class ServerCommand extends Command {
} }
async exec(message) { async exec(message) {
let botCount = message.guild.members.filter(member => member.user.bot).size; let botCount = message.guild.members.cache.filter(member => member.user.bot).size;
const addEmbed = this.client.util.embed() const addEmbed = this.client.util.embed()
.setColor(message.member.displayHexColor) .setColor(message.member.displayHexColor)
.setTitle(message.guild.name) .setTitle(message.guild.name)
@ -24,7 +24,7 @@ class ServerCommand extends Command {
.addField('Number of users', message.guild.memberCount - botCount, true) .addField('Number of users', message.guild.memberCount - botCount, true)
.addField('Number of bots', botCount, true) .addField('Number of bots', botCount, true)
.addField('Total number of members', message.guild.memberCount, true) .addField('Total number of members', message.guild.memberCount, true)
.addField('Number of channels', message.guild.channels.size, true) .addField('Number of channels', message.guild.channels.cache.size, true)
.addField('', '') .addField('', '')
.addField('Date when guild created', message.guild.createdAt, true) .addField('Date when guild created', message.guild.createdAt, true)
.addField('Owner', message.guild.owner, true) .addField('Owner', message.guild.owner, true)