$botCount

This function returns the total number of bots present in your Discord server (guild).

Usage: $botCount

Here's how you can use the $botCount function:

!!exec There are `$botCount` bots in the server!

This command, when executed, will display a message showing the bot count in the server. See the example below:

Member04/04/2025
!!exec There are `$botCount` bots in the server!
Custom Command Bot 04/04/2025
There are `2` bots in the server!

Warning

The bot count is retrieved from the bot's cache, not directly from the Discord API. This means the count might not be perfectly accurate, especially if all server members haven't been fully cached. Full caching is typically achieved at higher bot tiers (Tier 5).

Function Difficulty: Easy
Tags: bots count amount of bots return number