Skip to content
Entity Info guildCount

$guildCount[] — Number of Servers (Alias)

$guildCount[] is an alias of $serverCount[]. It returns the total number of Discord servers the bot is installed on.

Syntax

$guildCount

Parameters

No parameters.

Return Value

  • Type: integer
  • The number of servers the bot belongs to.

Examples

Simple Display

$sendMessage[🤖 Present on **$guildCount** servers!]

Bot Statistics

$title[📊 Bot Statistics]
$addField[🌐 Guilds;$guildCount;yes]
$addField[🔢 Shard;$shardID;yes]
$addField[📶 Ping;$ping ms;yes]
$color[#5865F2]

Popularity Condition

$if[$guildCount>=50]
$sendMessage[🎉 +$guildCount servers! Thank you all!]
$else
$sendMessage[Bot present on $guildCount servers.]
$endif

Notes

  • The number is the length of the list of servers returned by Discord for the bot account at the moment of the call.
  • $serverCount counts the same list; they differ only when no guild query service is available: $guildCount then falls back to the bot.guildCount value supplied by the host (or 1).

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.