$membersCount
$membersCount
will return a guild’s member count.
Usage
$membersCount[guildID?;presence?;countBot?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID? | number | The ID of the guild. | false |
presence? | string | The presence of the users 1. all (default) 2. dnd 3. idle 4. offline 5. online | false |
countBot? | boolean | Count bots? 1. true (default) 2. false | false |
Example(s)
This will return the amount of offline users (including bots) in your guild:
1client.command({2 name: "membersCount",3 code: `4 $membersCount[$guildID;offline;true]5 `6});