> For the complete documentation index, see [llms.txt](https://discordlib.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discordlib.js.org/iwdlc/do-servercount-in-commands.md).

# Do servercount in commands

A powerful discord bot making library to help you make discord bots. Super easy, 100 percent discord api coverage, and more! Discord.lib also allows you to interact with discord.js.

You can do servercount in commands by doing something like this:

```javascript
const dl = require("discord.lib")
dl.client.on("message", msg => {
 if(msg.content === "servercount"){
  msg.channel.send(client.guilds.size)
 }
})
```
