Browse Source

Use message instead of member for guild info

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

2
index.js

@ -380,7 +380,7 @@ async function aboutServer(message) {
.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) .addField("Roles", numRoles)
.addField("Created", `${new Date(member.guild.createdTimestamp).toLocaleString("en-US", {timeZoneName: "short"})}`) .addField("Created", `${new Date(message.guild.createdTimestamp).toLocaleString("en-US", {timeZoneName: "short"})}`)
.addField("User Statuses", `🟦 • ${numOnline} online\n\n🟧 • ${numAway} away\n\n⬛ • ${numOffline} offline\n\n🟥 • ${numDND} DND`) .addField("User Statuses", `🟦 • ${numOnline} online\n\n🟧 • ${numAway} away\n\n⬛ • ${numOffline} offline\n\n🟥 • ${numDND} DND`)
.setThumbnail(message.guild.iconURL()) .setThumbnail(message.guild.iconURL())
.setFooter(`Server ID: ${message.guild.id}`) .setFooter(`Server ID: ${message.guild.id}`)

Loading…
Cancel
Save