|
@ -45,6 +45,7 @@ async function aboutServer(message) { |
|
|
const categoryChannelCount = message.guild.channels.cache.filter(c => c.type === 'category').size; |
|
|
const categoryChannelCount = message.guild.channels.cache.filter(c => c.type === 'category').size; |
|
|
const numHumans = message.guild.members.cache.filter(member => !member.user.bot).size; |
|
|
const numHumans = message.guild.members.cache.filter(member => !member.user.bot).size; |
|
|
const numBots = message.guild.members.cache.filter(member => member.user.bot).size; |
|
|
const numBots = message.guild.members.cache.filter(member => member.user.bot).size; |
|
|
|
|
|
const numRoles = message.guild.members.cache.size; |
|
|
const aboutServerEmbed = new Discord.MessageEmbed() |
|
|
const aboutServerEmbed = new Discord.MessageEmbed() |
|
|
.setTitle(`About \`${message.guild.name}\``) |
|
|
.setTitle(`About \`${message.guild.name}\``) |
|
|
.addField("Owner", `<@${message.guild.ownerID}>`) |
|
|
.addField("Owner", `<@${message.guild.ownerID}>`) |
|
@ -52,6 +53,7 @@ async function aboutServer(message) { |
|
|
.addField("Verification Level", message.guild.verificationLevel) |
|
|
.addField("Verification Level", message.guild.verificationLevel) |
|
|
.addField("Channels", `Total: ${message.guild.channels.cache.size} ‖ Text: ${textChannelCount} • Voice: ${voiceChannelCount} • Categories: ${categoryChannelCount}`) |
|
|
.addField("Channels", `Total: ${message.guild.channels.cache.size} ‖ Text: ${textChannelCount} • Voice: ${voiceChannelCount} • Categories: ${categoryChannelCount}`) |
|
|
.addField("Members", `Total: ${numHumans + numBots} ‖ Human: ${numHumans} • Bot: ${numBots}`) |
|
|
.addField("Members", `Total: ${numHumans + numBots} ‖ Human: ${numHumans} • Bot: ${numBots}`) |
|
|
|
|
|
.addField("Roles", numRoles) |
|
|
.setThumbnail(message.guild.iconURL()) |
|
|
.setThumbnail(message.guild.iconURL()) |
|
|
.setFooter(`Server ID: ${message.guild.id}`) |
|
|
.setFooter(`Server ID: ${message.guild.id}`) |
|
|
.setTimestamp(); |
|
|
.setTimestamp(); |
|
|