forked from Supositware/Haha-Yes
Fix command
This commit is contained in:
parent
010a617ed4
commit
bbadea4eda
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue