Skip to content

$membersCount

$membersCount will return a guild’s member count.

Usage

$membersCount[guildID?;presence?;countBot?]

Parameters

FieldTypeDescriptionRequired
guildID?numberThe ID of the guild.false
presence?stringThe presence of the users
1. all (default)
2. dnd
3. idle
4. offline
5. online
false
countBot?booleanCount bots?
1. true (default)
2. false
false

Example(s)

This will return the amount of offline users (including bots) in your guild:

1
client.command({
2
name: "membersCount",
3
code: `
4
$membersCount[$guildID;offline;true]
5
`
6
});