server info discord.js
let embed = new Discord.MessageEmbed()
.setColor("RANDOM")
.setTitle("Server Info")
.setImage(message.guild.iconURL)
.setDescription(`${message.guild}'s information`)
.addField("Owner", `The owner of this server is ${message.guild.owner}`)
.addField("Member Count", `This server has ${message.guild.memberCount} members`)
.addField("Emoji Count", `This server has ${message.guild.emojis.cache.size} emojis`)
.addField("Roles Count", `This server has ${message.guild.roles.cache.size} roles`)
message.channel.send(embed)// COMPLICATED SCRIPT DONT DISLIKE IF YOU CANT UNDERSTAND //
client.on('message', message => {
if (message.content.toLowerCase().startsWith(prefix + 'server')) {
if (UtilCommandsDisable.has(message.guild.id)) {
message.channel.send("**Util Commands are Disabled in This Server**")
} else if (!UtilCommandsDisable.has(message.guild.id)) {
const ServerLogo = message.guild.iconURL();
const ServerInfoEmbed = new Discord.MessageEmbed()
.setColor('#b700ff')
.setTitle("Server Info")
.setImage(ServerLogo)
.setDescription(`About **${message.guild}**`)
.addField("**Date Created**", `Server Created on **${message.guild.createdAt.toLocaleString()}**`)
.addField("**Owner**", `The Owner of This Server is ${message.guild.owner}`)
.addField("**Member Count**", "This Server Has ` " + `${message.guild.memberCount}` + " ` **Members**")
.addField("**Emoji Count**", "This Server Has ` " + `${message.guild.emojis.cache.size}` + " ` **Emojis**")
.addField("**Roles Count**", "This Server Has ` " + `${message.guild.roles.cache.size}` + " ` **Roles**")
.addField("**Channels Count**", "This Server Has ` " + `${message.guild.channels.cache.size}` + " ` **Channels**")
.addField("**Server Logo**", "**Downlaod Server Logo**")
.setURL(ServerLogo)
message.channel.send(ServerInfoEmbed)
}
}
})