description |
---|
Returns the amount of members, in the current Guild. |
This function returns the amount of members in the current guild
$membersCount[guildID (optional);status (optional);countBots (optional)(yes/no)]
bot.command({
name: "info",
code: `Members: $membersCount`
})
{% hint style="danger" %}
This only works in Guilds, otherwise will return an error.
Prototype: $allMembersCount
{% endhint %}
- $membersCount[$guildID;online] - returns the amount of online people in the guild.
- $membersCount[$guildID;Idle] - returns the amount of idle people in the guild.
- $membersCount[$guildID;dnd] - returns the amount of people in the guild.
- $membersCount[$guildID;offline] - returns the amount of offline people in the guild.
- $membersCount[$guildID;all;no] - returns the amount of all the humans in the guild.
Show all users excluding bots:
bot.command({
name: "info",
code: `Members: $membersCount[$guildID;all;no]`
})