v5.0.0
$membersCount
Returns the amount of members, in the current Guild.
This function returns the amount of members in the current guild
1
$membersCount[guildID (optional);status (optional);countBots (optional)(yes/no)]
Copied!
1
bot.command({
2
name: "info",
3
code: `Members: $membersCount`
4
})
Copied!
This only works in Guilds, otherwise will return an error. Prototype: $allMembersCount

Member Count of a certain status

  • $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:
1
bot.command({
2
name: "info",
3
code: `Members: $membersCount[$guildID;all;no]`
4
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub