Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.04 KB

usdmemberscount.md

File metadata and controls

40 lines (31 loc) · 1.04 KB
description
Returns the amount of members, in the current Guild.

$membersCount

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 %}

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:

bot.command({
name: "info",
code: `Members: $membersCount[$guildID;all;no]`
})