Custom Command
FunctionsBot Functions

$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 next:

Member
9/5/2026

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

Custom Command
APP
9/5/2026

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

On this page