title: Discord.js How to get show your server member count from your bot
body: <p>I've been trying to show my server member count from my bot but I don't know the input to type.</p>
  <pre><code>const {MessageEmbed} = require(&quot;discord.js&quot;)
  module.exports.run = async (client, message, args) =&gt; {
    console.log(message.guild.iconURL())
    const messageEmbed = new MessageEmbed()
    .setTitle(&quot; Server Information &quot;)
    .setThumbnail(message.guild.iconURL())
    .addFields(
      {name: &quot;Server Name:&quot;, value: `\`${message.guild.name}\``, inline: true},
      {name: &quot;Server Owner:&quot;, value: `${message.guild.owner}`, inline: true},
      {name: &quot;Server Created:&quot;, value: `${message.guild.createdAt}`},
      {name: &quot;Emoji count:&quot;, value: `${message.guild.emojis.cache.size}`, inline: true},
      {name: &quot;Member count:&quot;, value: `${message.guild.members}`, inline: true}
    )
    .setColor(&quot;#FFFF66&quot;)
    .setFooter(&quot;Requested by &quot; + message.author.tag)
    .setTimestamp()
  
    message.channel.send(messageEmbed)
  }
  
  
  exports.help = {
      name: &quot;serverinfo&quot;
  }
  </code></pre>
  <p>I have a feeling that <code>${message.guild.members}</code> is wrong.</p>