Browse Source

Add roles

master
Abheek Dhawan 4 years ago
parent
commit
1726fdcdeb
  1. 2
      index.js

2
index.js

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

Loading…
Cancel
Save